boot.plots | R Documentation |
mvdareg
ObjectThis takes an mvdareg
object fitted with validation = "oob"
and produces a graph of the bootstrap distribution and its corresponding normal quantile plot for a variable of interest.
boot.plots(object, comp = object$ncomp, parm = NULL, type = c("coefs", "weights", "loadings"))
object |
an object of class |
comp |
latent variable from which to generate the bootstrap distribution for a specific parameter |
parm |
a parameter for which to generate the bootstrap distribution |
type |
input parameter vector |
The function generates the bootstrap distribution and normal quantile plot for a bootstrapped mvdareg
model given validation = "oob"
for type = c("coefs", "weights", "loadings")
. If parm = NULL
a paramater is chosen at random.
The output of boot.plots
is a histogram of the bootstrap distribution and the corresponding normal quantile plot.
Nelson Lee Afanador (nelson.afanador@mvdalab.com)
bca.cis
data(Penta) ## Number of bootstraps set to 300 to demonstrate flexibility ## Use a minimum of 1000 (default) for results that support bootstraping mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1], ncomp = 2, validation = "oob", boots = 300) boot.plots(mod1, type = "coefs", parm = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.