R2 {SMIR} | R Documentation |
This function provides the coefficient of determination for lm
objects that may not have an intercept
R2(model)
model |
an object as returned by 'lm' |
Aitkin, M., Francis, B., Hinde, J. and Darnell, R. (2009). Statistical Modelling in R, UOP.
data(trees) R2(lm(v ~ d + h - 1, data=trees))