Re: multiple linear regression
- From: JW <wallisjon@xxxxxxxxxxx>
- Date: Tue, 13 May 2008 14:01:22 -0700 (PDT)
On May 13, 11:52 am, Richard Ulrich <Rich.Ulr...@xxxxxxxxxxx> wrote:
On Tue, 13 May 2008 09:14:37 -0700 (PDT), JW <wallis...@xxxxxxxxxxx>
wrote:
On May 13, 8:39�am, Ray Koopman <koop...@xxxxxx> wrote:
On May 13, 8:26�am, JW <wallis...@xxxxxxxxxxx> wrote:
[snip, some]
JW > >
Ray > >IV1 naturally ran from 1 to 5. IV2 was dummy coded as 1 and 2.
I standardized the DV and IV before running the regression.
Were these the degrees of freedom for the two analyses?
� � � � �Anova � Regression
� IV1 � � �4 � � � 1
� IV2 � � �1 � � � 1
IV1*IV2 � �4 � � � 1- Hide quoted text -
JW >- Show quoted text -
For the Anova, yes that's exactly right. For the regression, I'm not
sure. I assume those are the degrees of freedom, but I can't see it
reported anywhere (I'm using MATLAB).
However, I think I might have done something stupid - I standardized
the interaction term. In other words, I multiplied IV1 and IV2 and
then standardized the result. If I do it the other way round, i.e.
standardize IV1 and IV2 and then multiply to return the interaction
term, my regression results look a lot more like the ANOVA results.
Might this be the explanation for what I'm doing wrong?
I sounds like there were two separate problems in
translating the ANOVA to the regression.
Ray points out that using 5 categories is inherently
a different test (with 4 d.f.) from using one continuous
variable (with 1 d.f.).
Also, as above, "centering" the terms for the interaction
before multiplying them is a vital step that gives a
different result. When positive-signed numbers are
multiplied, the result is correlated fairly well with each
of the multipliers. Because of that, the result will be
"confounded with" the other predictors. They account for
some of the same variance. That's usually not a desirable
way to look at interactions.
--
Rich Ulrich
http://www.pitt.edu/~wpilib/index.html- Hide quoted text -
- Show quoted text -
Hi Ray and Rich,
Thank you very much for your help - I really appreciate it. Just to be
clear I wasn't trying to replicate the ANOVA exactly, but using it
more as a sanity check. I could see from plotting it that there was a
(linear) effect of IV1, no effect of IV2 and no interaction (and the
ANOVA confirmed this). But I was getting strange results when trying
the same thing with multiple linear regression, specifically that it
wasn't as 'significant' as it looked from the graph.
It seems that "centering" was key. When I centered the variables it
made little difference whether I standardized the product term or not,
but when they were uncentered it made a big difference. So I guess my
final question is, generally speaking do people standardize their
product term or not?
Thanks again!
.
- Follow-Ups:
- Re: multiple linear regression
- From: JW
- Re: multiple linear regression
- References:
- multiple linear regression
- From: wallisjon
- Re: multiple linear regression
- From: Ray Koopman
- Re: multiple linear regression
- From: JW
- Re: multiple linear regression
- From: Ray Koopman
- Re: multiple linear regression
- From: JW
- Re: multiple linear regression
- From: Richard Ulrich
- multiple linear regression
- Prev by Date: Re: multiple linear regression
- Next by Date: Re: multiple linear regression
- Previous by thread: Re: multiple linear regression
- Next by thread: Re: multiple linear regression
- Index(es):
Relevant Pages
|