[R] regression analysis in R

Peter Ehlers ehlers at ucalgary.ca
Sat Oct 27 01:36:27 CEST 2012

On 2012-10-26 13:00, eliza botto wrote:
> Dear useRs,
> i have vectors of about 27 descriptors, each having 703 elements. what i want to do is the following 1. i want to do regression analysis of these 27 vectors individually, against a dependent vector, say B, having same number of elements.2. i would like to know best 10 regression results, if i do regression analysis of dependent vector against the random combination of any 4 descriptors. more precisely, in the first step we did regression of dependent vector against individual vector of each descriptor, but now we want R to randomly combine descriptors in a set of 4 and does regression analysis with B to see what are top 10 combination of descriptors giving good regression results with B? i hope i am clear. i know 2nd part is more tricky, but i will be extremely happy if you can answer any one of the above questions.
> thanks in advanceeliza

I hope that you're doing _exploratory_ data analysis.
Have a look at the 'leaps' package. It might be suitable.

Peter Ehlers

More information about the R-help mailing list