Prints "mshapviz" Object
# S3 method for class 'mshapviz'
print(x, ...)
Invisibly, the input is returned.
S <- matrix(c(1, -1, -1, 1), ncol = 2, dimnames = list(NULL, c("x", "y")))
X <- data.frame(x = c("a", "b"), y = c(100, 10))
s1 <- shapviz(S, X, baseline = 4)[1]
s2 <- shapviz(S, X, baseline = 4)
x <- c(s1 = s1, s2 = s2)
x
#> 'mshapviz' object representing 2 'shapviz' objects:
#> 's1': 1 x 2 SHAP matrix
#> 's2': 2 x 2 SHAP matrix