| To: | <s-news@lists.biostat.wustl.edu> |
|---|---|
| Subject: | Re: product of numeric variables in lm |
| From: | "Harald Hoogstrate" <Hoogstrate@POINTLOGIC.NL> |
| Date: | Mon, 20 Jan 2003 16:05:49 +0100 |
| Thread-index: | AcLAk64me3fxAHJwQtuHnJug7v/VgwAASWTg |
| Thread-topic: | product of numeric variables in lm |
|
OK,
three answers within 5 minutes, must be a speedrecord.
This one from Beth Atkinson best explains
the S+ behaviour:
"a*b is a + b + a:b
The definition you used of
D$a*D$b only includes the interaction term and not the main effects.
If you only want
the interaction, use
lm(y~c+a:b,data=""
class=987350115-20012003>"
Thanks
all,
Harald
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | product of numeric variables in lm, Harald Hoogstrate |
|---|---|
| Next by Date: | Re: error removing intercept in lme, Sundar Dorai-Raj |
| Previous by Thread: | product of numeric variables in lm, Harald Hoogstrate |
| Next by Thread: | SUMMARY - Time Series Book(s), Paul, David A |
| Indexes: | [Date] [Thread] [Top] [All Lists] |