Learn R Programming

SMIR (version 0.02)

R2CV: 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

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

Run the code above in your browser using DataLab