R2: Coefficient of determination of linear models

Description Usage Arguments Author(s) References Examples

View source: R/R2.R

Description

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

Usage

1
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

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

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

Related to R2 in SMIR...