Re: [R] Step wise regression

From: Renaud Lancelot <renaud.lancelot_at_cirad.fr>
Date: Wed 04 May 2005 - 01:52:53 EST

Frank E Harrell Jr a écrit :
> walmir-rodrigues wrote:
>

>> Dear Fellows,
>>
>> How can I do to proced a step wise regression in R, if it´s possible ?
>>
>> Thanks,
>>
>> Walmir 

>
>
> Here is an easy approach that will yield results only slightly less
> valid than one actually using the response variable:
>
> x <- data.frame(x1,x2,x3,x4,..., other potential predictors)
> x[,sample(ncol(x))]
>
> :-) -Frank
>
>
competing for the "fortune" award ?... ;-)

Renaud

-- 
Dr Renaud Lancelot, vétérinaire
C/0 Ambassade de France - SCAC
BP 834 Antananarivo 101 - Madagascar

e-mail: renaud.lancelot@cirad.fr
tel.:   +261 32 40 165 53 (cell)
         +261 20 22 665 36 ext. 225 (work)
         +261 20 22 494 37 (home)

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Wed May 04 02:23:01 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:32 EST