ap.plot: Actual versus Predicted Plot and Residuals versus Predicted

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/ap.plot.R

Description

This function provides the actual versus predicted and actual versus residuals plot as part of a model assessment

Usage

1
ap.plot(object, ncomp = object$ncomp, verbose = FALSE)

Arguments

object

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

ncomp

number of components used in the model assessment

verbose

output results as a data frame

Details

This function provides the actual versus predicted and residuals versus predicted plot as part of model a assessment across the desired number of latent variables. A smooth fit (dashed line) is added in order to detect curvature in the fit.

Value

The output of ap.plot is a two facet graph for actual versus predicted and residuals versus predicted plots.

Author(s)

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

See Also

plsFit

Examples

1
2
3
4
5
6
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)
ap.plot(mod1, ncomp = 2)

mvdalab documentation built on May 30, 2017, 2:40 a.m.

Search within the mvdalab package
Search all R packages, documentation and source code