[R] lm without intercept
citynorman
citynorman at hotmail.com
Wed Aug 15 01:34:25 CEST 2012
The cor(mtcars$mpg, fitted(m0))^2 method works great - thanks so much Josh!
I've had another instance (also ex intercept) where it actually gave the
correct number, odd behavior.
Thanks for the other posts also. As an aside, in my application a zero
intercept makes economic sense and I'm using R^2 for just a crude measure of
fit as sort of a first pass test so no worries there :)
--
View this message in context: http://r.789695.n4.nabble.com/lm-without-intercept-tp3312429p4640328.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list