addStats: Add stats of the model to the plot

Description Usage Arguments

Description

Add stats of the model to the plot

Usage

1
2
3
addStats(model, ncomp = model$ncomp, estimate = "train",
  location = "bottomright", show = c("ncomp", "R2", "RMSE"), round = 2,
  newx = NULL, newy = NULL, fitline = TRUE, ...)

Arguments

model

object of class 'mvr'

ncomp

a vector of positive integers. The components or number of components to use. See below.

estimate

can be "train", "CV" or "test". In case of "test", newdata must be provided.

location

location of legend on graph. Look up legend for more details.

show

choose variables to show in the plot

round

number of digits to round

newx

predictors for test group

newy

measured value for test group

fitline

logical argument whether to add fitline or not

...

additional arguments for legend


chengvt/cheng documentation built on May 13, 2019, 3:52 p.m.