plot.wrtpls: Plots of the Output of a Permutation Distribution for an...

View source: R/plot.wrtpls.R

plot.wrtplsR Documentation

Plots of the Output of a Permutation Distribution for an mvdareg Object with method = "bidiagpls"

Description

This takes an mvdareg object fitted with method = "bidiagpls" and produces a graph of the bootstrap distribution and its corresponding normal quantile plot for a variable of interest.

Usage

## S3 method for class 'wrtpls'
plot(x, comp = 1:object$ncomp, distribution = "log", ...)

Arguments

x

an object of class "mvdareg", i.e., a plsFit.

comp

number of latent variables to generate the permutation distribution

distribution

plot the "log", or "actual", of the permutation distribution

...

additional arguments. Currently ignored.

Details

The function generates the permutation distribution and normal quantile plot for a mvdareg model when method = "bidiagpls" is specified.

Value

The output of plot.wrtpls is a histogram of the permutation distribution with the following vertical line indicators.

Solid line = Actual Value; Dashed Line = Critical Value from t-distribution at the model specifed alpha; Dotted line = Quantile at the model specifed alpha

Author(s)

Nelson Lee Afanador (nelson.afanador@mvdalab.com)

See Also

bca.cis

Examples

data(Penta)
mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1],
               method = "wrtpls", validation = "none")
## Not run
## plot.wrtpls(mod1, distribution = "log")

mvdalab documentation built on Oct. 6, 2022, 1:05 a.m.