[R] Lm.fit extracting r-squared
jhn_nolan
john.nolan26 at mail.dcu.ie
Thu Apr 14 13:14:25 CEST 2011
Dear list,
I am running a fama macbeth regression using the lm.fit function and am
having problems extracting the rsquareds from each of the cross sectional
regressions (second stage) I have estimated.
I can obtain the coefficients using cfit = lm.fit(t(bhat[-1,]),
t(q))$coefficients
However I am unsure how (or if I even can) obtain the rsquareds for each
regression.
Thanks in advance,
John
--
View this message in context: http://r.789695.n4.nabble.com/Lm-fit-extracting-r-squared-tp3449343p3449343.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list