[R] R-squared, how can I do to put this in a vector?

Botrel pamela.botrel at hotmail.com
Wed Feb 1 22:09:49 CET 2012

I'm needing to remove the R-squared , and put this in a vector. It's the same
that I do with the Beta or alfa in a linear regression:

beta <- vector()  ##  beta

for (i in 1:ncol(ret)){

	beta[i] <- summary(lm((ret[,i] - ret.selic.ibov[,1])  ~ rmrf[,1] +

So, I need to know what I'll put after* $*.


View this message in context: http://r.789695.n4.nabble.com/R-squared-how-can-I-do-to-put-this-in-a-vector-tp4349460p4349460.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list