| looCV_table | R Documentation |
Function simply produces a table of MSE and cross-validated MSE for any number of compared models. The table is sorted from lowest to highest cross-validated MSE. The looCV objects must use method = 'fit' or a table cannot be generated.
looCV_table(...)
... |
Any number of |
Michael Collyer
looCV, model.comparison
# Example with snakeHS data
data(snakeHS)
fitS <- lm.rrpp(HS ~ SVL, data = snakeHS,
iter = 0)
fitSR <- lm.rrpp(HS ~ SVL + Region, data = snakeHS,
iter = 0)
fitSxR <- lm.rrpp(HS ~ SVL * Region, data = snakeHS,
iter = 0)
CVS <- looCV(fitS)
CVSR <- looCV(fitSR)
CVSxR <- looCV(fitSxR)
summary(CVS)
summary(CVSR)
summary(CVSxR)
looCV_table(CVS, CVSR, CVSxR)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.