Login  Register

Re: Multilevel linear Model (hierachical linear models) - repeated?

Posted by Ryan on Aug 16, 2014; 3:08am
URL: http://spssx-discussion.165.s1.nabble.com/Multilevel-linear-Model-hierachical-linear-models-repeated-tp5726927p5726987.html

Laura,

I haven't followed the thread all that closely (and honestly do not have time) but if I am correct that you have two within-subjects factors, the following code might suffice:

MIXED Y BY A B
/FIXED = A B A*B 
/REPEATED = A*B | SUBJECT(ID) COVTYPE(UN)
/PRINT SOLUTION.

You could then employ the EMMEANS or TEST statement(s) to construct various contrasts of interest.

For the linear MIXED model code above to run you would need to structure your data in vertical format as follows:

ID   A   B   Y
1    1   1   23
1    1   2   25
1    2   1   22
1    2   2   35
2    1   1   21
2    1   2   16
2    2   1   18
2    2   2   20
.
.
.


Best wishes,

Ryan


On Mon, Aug 11, 2014 at 5:50 AM, LauraE <[hidden email]> wrote:
Hi,

based on the study
Miller, G., Tybur, J. M., & Jordan, D. B. (2007). Evolution and Human
Behavior, 28, 375–381.
and Andy Fields explanation (Discovering SPSS;
http://www.google.de/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CCUQFjAA&url=http%3A%2F%2Fwww.sagepub.com%2Ffield4e%2Fstudy%2Flabcoatleni%2Fchapter20.pdf&ei=Io7oU6u0KPHS4QSvr4HgCg&usg=AFQjCNF8NjwWAfHgwAx0An7HmiMg5AljlQ&bvm=bv.72676100,d.d2k

I tried to run a multilevel linear model for my own analysis, but I am not
sure if it is correct.
I have a 2x2 within subject repeated measurement design. Dependent variable
is money bid. Factors are A and B with 2 levels each. Participants see 25
pictures in each factor level (all in all 100 pictures, 25 pictures in A1B1,
25 in A2B1 and so on). Data are balanced, all participants see 25 pictures
in each factor level.

Upper level should be subject ID, dependent variable is amount of money bid.
I tried to follow the example of Andy Field, with Analyze--mixed models
linear.
subjects: Subject ID; repeated: none (is that correct???) and dependent
variable bid with factors A and B. Fixed effects were added (main effect A,
main effect B, interaction AxB), ID is added as a random effect (only
intercept, because of the assumption that subjects vary in their amount of
bid, some bid always little, some bid always higher).

Is this procedure OK or is there something wrong? I get dfs of more than
3000 (but I only have 33 subjects)... or do I have to somehow include
somehting in repeated? If so, how?
And how do I get values for each factor level (i.e., values for A1B1, A2B1,
A1B2, A2B2) in the table "estimates for fixed effects"?

Thanks a lot!
Laura







--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Multilevel-linear-Model-hierachical-linear-models-repeated-tp5726927.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
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