PRESS | R Documentation |
Various summaries of predictions and PRESS residuals.
R2pred(object = NULL)
RMSEP(object)
rmsep(object)
PRESS(object = NULL)
PRESS.res(object = NULL, ncomp = NULL)
PRESS.pred(object = NULL, ncomp = NULL)
object |
a fitted model of type |
ncomp |
number of components to use with |
Predictions are extracted and summaries/residuals are computed.
Returns either an object of summaries or residuals.
Kristian Hovde Liland
data <- data.frame(y = rnorm(8),
x = factor(c('a','a','a','a','b','b','b','b')),
z = factor(c('a','a','b','b','a','a','b','b')))
mod <- lm(y ~ x + z, data=data)
RMSEP(mod)
rmsep(mod) # Alias to distinguish it from pls::RMSEP
R2pred(mod)
PRESS(mod)
PRESS.res(mod)
PRESS.pred(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.