[R] forward model selection

About this list Date view Thread view Subject view Author view

From: Stefano (stecalza@tiscalinet.it)
Date: Sat 24 Mar 2001 - 03:51:06 EST


Message-Id: <5.0.2.1.2.20010323184105.009f4e80@pop.tiscalinet.it>

Dear all,

I want to select a linear model by means of a forward selection procedure, adding only the main terms, that is x1+x2+x3+...xn.
Is there a fast way to specify all the main terms without writing each one?

For example:

linear <- step(lm(resp~1,data=dati),scope=(upper="all main effects",lower=~1),direction="forward")

Thanks,

Stefano

*******************************
Stefano Calza
Istituto di Statistica Medica e Biometria
Università degli Studi di Milano
Via G. Venezian, 1
20133 Milano

tel. +39 02/2361302, 02/70600908
fax 02/2362930

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Fri 22 Jun 2001 - 18:58:37 EST