Re: [R] OLS variables

2005-11-07 Thread Prof Brian Ripley
On Sun, 6 Nov 2005, Kjetil Brinchmann halvorsen wrote: John Fox wrote: I assume that you're using lm() to fit the model, and that you don't really want *all* of the interactions among 20 predictors: You'd need quite a lot of data to fit a model with 2^20 terms in it, and might have trouble

Re: [R] OLS variables

2005-11-07 Thread John Fox
, 2005 4:05 AM To: Kjetil Brinchmann halvorsen Cc: John Fox; r-help@stat.math.ethz.ch Subject: Re: [R] OLS variables On Sun, 6 Nov 2005, Kjetil Brinchmann halvorsen wrote: John Fox wrote: I assume that you're using lm() to fit the model, and that you don't really want *all

Re: [R] OLS variables

2005-11-07 Thread Prof Brian Ripley
@stat.math.ethz.ch Subject: Re: [R] OLS variables On Sun, 6 Nov 2005, Kjetil Brinchmann halvorsen wrote: John Fox wrote: I assume that you're using lm() to fit the model, and that you don't really want *all* of the interactions among 20 predictors: You'd need quite a lot of data to fit a model

Re: [R] OLS variables

2005-11-07 Thread John Fox
://socserv.mcmaster.ca/jfox -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: Monday, November 07, 2005 11:14 AM To: John Fox Cc: r-help@stat.math.ethz.ch; 'Kjetil Brinchmann halvorsen' Subject: RE: [R] OLS variables On Mon, 7 Nov

[R] OLS variables

2005-11-06 Thread Leaf Sun
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

Re: [R] OLS variables

2005-11-06 Thread John Fox
://socserv.mcmaster.ca/jfox -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leaf Sun Sent: Sunday, November 06, 2005 3:11 AM To: r-help@stat.math.ethz.ch Subject: [R] OLS variables Dear all, Is there any simple way in R

Re: [R] OLS variables

2005-11-06 Thread Adaikalavan Ramasamy
] On Behalf Of Leaf Sun Sent: Sunday, November 06, 2005 3:11 AM To: r-help@stat.math.ethz.ch Subject: [R] OLS variables 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

Re: [R] OLS variables

2005-11-06 Thread Leaf Sun
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leaf Sun Sent: Sunday, November 06, 2005 3:11 AM To: r-help@stat.math.ethz.ch Subject: [R] OLS variables Dear all, Is there any simple way in R that can I put the all

Re: [R] OLS variables

2005-11-06 Thread Kjetil Brinchmann halvorsen
] On Behalf Of Leaf Sun Sent: Sunday, November 06, 2005 3:11 AM To: r-help@stat.math.ethz.ch Subject: [R] OLS variables 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