looCV_table: Table for looCV comparisons

View source: R/looCV.r

looCV_tableR Documentation

Table for looCV comparisons

Description

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.

Usage

looCV_table(...)

Arguments

...

Any number of looCV objects

Author(s)

Michael Collyer

See Also

looCV, model.comparison

Examples


# 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)


RRPP documentation built on July 7, 2026, 1:07 a.m.