R2CV: Cross-validated coefficient of determination

Description Usage Arguments References Examples

View source: R/R2CV.R

Description

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

Usage

1
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

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

Example output

[1] 0.9306206

SMIR documentation built on May 29, 2017, 10:39 a.m.

Related to R2CV in SMIR...