repeated mixed model

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

repeated mixed model

Laura Hänninen
Hello!

This could be very basic question, but nevertheless, if someone more
clever person could answer;

We have a dataset of individual animals, which got either treatment A or
B, over 5 consecutive days. We are not interested in the overall day
effect, but the treatment*time interaction is our main question.

Is it OK to write the syntax as below, or we need to allocate the day as
fixed effect as well

MIXED freq BY animal day treatment
  /FIXED= treatment day*treatment | SSTYPE(3)
  /METHOD=REML
  /RANDOM=INTERCEPT individual|
  /REPEATED=day | SUBJECT(calf) COVTYPE(AR1)
  /SAVE=RESID

Best,
Laura

=====================
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: repeated mixed model

Bruce Weaver
Administrator
Laura Hänninen wrote
Hello!

This could be very basic question, but nevertheless, if someone more
clever person could answer;

We have a dataset of individual animals, which got either treatment A or
B, over 5 consecutive days. We are not interested in the overall day
effect, but the treatment*time interaction is our main question.

Is it OK to write the syntax as below, or we need to allocate the day as
fixed effect as well

MIXED freq BY animal day treatment
  /FIXED= treatment day*treatment | SSTYPE(3)
  /METHOD=REML
  /RANDOM=INTERCEPT individual|
  /REPEATED=day | SUBJECT(calf) COVTYPE(AR1)
  /SAVE=RESID

Best,
Laura
When one includes an interaction term in a regression model, it is standard to also include all lower order interactions involving the same variables, and the main effect terms.  So I would include Day as a fixed effect.

--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).