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
, 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
@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
://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
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
://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
] 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
-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
] 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