R2CV {SMIR}R Documentation

Cross-validated coefficient of determination

Description

This function provides the leave-one-out crossvalidation version of the coefficient of determination for regression models

Usage

R2CV(model)

Arguments

model an object as returned by 'lm'

References

Aitkin, M., Francis, B., Hinde, J. and Darnell, R. (2009). Statistical Modelling in R, UOP.

Examples

data(trees)
R2CV(lm(v ~ d + h, data=trees))

[Package SMIR version 0.02 Index]