plotQVI | R Documentation |
Computes the quantile ALE-induced variable importance (VI) measure for each of the covariate specified in var.index, and produces a ranking plot of the covariates using bar plot for each quantile of interest.
plotQVI(object, var.index = NULL, var.names = NULL, ...)
object |
An object of class |
var.index |
A vector specifying the index of the covariates for which VI measures should be computed.
Default is |
var.names |
The names of the covariates to appear in the bar plots. Default is |
... |
Arguments passed on to
|
A ggplot
object.
set.seed(919) n <- 200 X <- matrix(runif(n*2, 0, 2), nrow = n, ncol = 2) Y <- rnorm(n, X[,1]^2, 0.3+X[,1]/2) control <- list(iter = 200, warmup = 150, thin = 1) fit <- SPQR(X=X, Y=Y, n.knots=12, n.hidden=5, method="MCMC", control=control, normalize=TRUE, verbose = FALSE) ## compute quantile VI of at tau = 0.2,0.5,0.8 plotQVI(fit, tau=c(0.2,0.5,0.8))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.