Interaction between a binary and a continuous variable

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Interaction between a binary and a continuous variable

Nomi-2
Hello all,
I have run a hierarchical linear regression model and would like to
include interactions between a binary variable and a continuous variable
in the final step of the model.
Could someone please advise me how this is done? Can I create a new
variable by simply multiplying the two or do I need to first center the
continuous variable?
Thanks,
Nomi

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Interaction between a binary and a continuous variable

Michael N. Mitchell
Dear Nomi

   There is probably no need to center the continuous variable in this case. You can
verify this for yourself by inspecting the VIF values, and checking that the values are
less than 10. Suppose your binary variable is "a" and the continous variable is "x". You
can create the interaction term by multiplication, or you can let SPSS do it for you by
specifying "a x a by x" .

I hope this helps,

Michael N. Mitchell
Data Management Using Stata      - http://www.stata.com/bookstore/dmus.html
A Visual Guide to Stata Graphics - http://www.stata.com/bookstore/vgsg.html
Stata tidbit of the week         - http://www.MichaelNormanMitchell.com



On 2010-11-09 1.43 AM, Nomi wrote:

> Hello all,
> I have run a hierarchical linear regression model and would like to
> include interactions between a binary variable and a continuous variable
> in the final step of the model.
> Could someone please advise me how this is done? Can I create a new
> variable by simply multiplying the two or do I need to first center the
> continuous variable?
> Thanks,
> Nomi
>
> =====================
> To manage your subscription to SPSSX-L, send a message to
> [hidden email] (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD