Re: [R] Step wise regression

From: Frank E Harrell Jr <f.harrell_at_vanderbilt.edu>
Date: Tue 03 May 2005 - 23:21:02 EST

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

-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University

______________________________________________
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 Tue May 03 23:35:08 2005

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