R2 {SMIR}R Documentation

Coefficient of determination of linear models

Description

This function provides the coefficient of determination for lm objects that may not have an intercept

Usage

R2(model)

Arguments

model an object as returned by 'lm'

Author(s)

ross.darnell@csiro.au

References

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

Examples

data(trees)
R2(lm(v ~ d + h - 1, data=trees))

[Package SMIR version 0.02 Index]