[R] R help

Peter Ehlers ehlers at ucalgary.ca
Sat Apr 7 21:05:14 CEST 2012


On 2012-04-07 08:27, kebrab67 wrote:
> I have a 11*1562 set of data. I want to regress using ols all combination of
> the ten variables on the eleventh. Store the results of the t test of each
> regression and the r2 to compare which combination is better. the
> combination can use any amount o variables. How can I do that in R?

Personally, I think that what you propose is scientific nonsense.
But if you must do this, you might check out the leaps package.

Peter Ehlers

>
> --
> View this message in context: http://r.789695.n4.nabble.com/R-help-tp4539571p4539571.html
> Sent from the R help mailing list archive at Nabble.com.
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list