[.hstats_matrix | R Documentation |
Use standard square bracket subsetting to select rows and/or columns of
statistics "M" (and "SE" in case of permutation importance statistics).
Implies head()
and tail()
.
## S3 method for class 'hstats_matrix'
x[i, j, ...]
x |
An object of class "hstats_matrix". |
i |
Row subsetting. |
j |
Column subsetting. |
... |
Currently unused. |
A new object of class "hstats_matrix".
fit <- lm(as.matrix(iris[1:2]) ~ Petal.Length + Petal.Width * Species, data = iris)
imp <- perm_importance(fit, X = iris, y = c("Sepal.Length", "Sepal.Width"))
head(imp, 1)
tail(imp, 2)
imp[1, "Sepal.Length"]
imp[1]
imp[, "Sepal.Width"]$SE
plot(imp[, "Sepal.Width"])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.