[R] OLS variables

Leaf Sun leaflovesun at yahoo.ca
Sun Nov 6 09:10:50 CET 2005


Dear all,

Is there any simple way in R that can I put the all the interactions of the variables in the OLS model?

e.g.

I have a bunch of variables, x1,x2,.... x20... I expect then to have interaction (e.g. x1*x2, x3*x4*x5... ) with some combinations(2 way or higher dimensions). 

Is there any way that I can write the model simpler?

Thanks!

Leaf




More information about the R-help mailing list