slides mixed effects modeling using spss - · pdf filemixed effects modeling using spss®...

77
MIXED EFFECTS MODELING USING SPSS ® Instructor: Manolo ROMERO ESCOBAR http://mixedreviews.wordpress.com 12 January 2011 At the Research and Outcome Measurement Branch. Ministry of Children and Youth Services

Upload: vandieu

Post on 06-Mar-2018

226 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

MIXED EFFECTS MODELING

USING SPSS®

Instructor: Manolo ROMERO ESCOBAR

http://mixedreviews.wordpress.com

12 January 2011

At the Research and Outcome Measurement Branch.

Ministry of Children and Youth Services

Page 2: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

2

"Two facts - that children's growth is

typically the object of inquiry, and that

such growth occurs in organizational

settings - correspond to two of the most

troublesome and persistent methodological

problems in the social sciences: the

measurement of change and the

assessment of multi-level effects“

(Bryk & Raudenbush, 1989, p. 160).

Page 3: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

AGENDA

Review of general linear model

Mixed Effects Model for Clustered/Grouped

Data

◦ Lab 1

Lunch Break

Longitudinal Outcome Analysis with Mixed

Effects Modeling

◦ Lab 2 and 3

3

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

Page 4: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

“Nested” data

Common in behavioural and social sciences

Students-classes-schools-boards-etc…

Repeated observations

Violation of assumptions (e.g. students in

same classroom might share characteristics,

non-independent, non-random)

4

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

Page 5: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Different names: Same idea

Multilevel linear models (cf. Goldstein, 1995)

Multilevel analysis (cf. Hox, 1995)

Hierarchical Linear Models (cf. Raudenbush &

Bryk, 2002)

Mixed effects models

Slopes as Outcomes

5

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

Page 6: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

General Linear Model (GLM)

A continuous outcome (dependent) variable

Do not confuse with “generalized linear

model” in which DV is not continuous (e.g.

Logistic regression)

Predictors can be continuous (multiple

regression) or categorical (ANOVA) or a

combination of both (ANCOVA).

Estimation via Ordinary Least Squares

6

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

Page 7: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

GLM formulation

12/0

1/2

011

SPSS(

R)

MIX

ED

MO

DELS

7

),0(~

,

2

110

Nrwhere

rxy

i

iii

Page 8: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

A GLM example

Simulated data

DV: Self Esteem

Factors: Psycho-therapy treatment and

Gender

Covariates: Intelligence, Resilience, and

Socio-economic Status.

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

8

Page 9: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

9

Page 10: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

10

Page 11: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

11

Page 12: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

12

Observed Data

Predicted Data

Page 13: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Unconditional Means Model12/0

1/2

011

SPSS(

R)

MIX

ED

MO

DELS

13

),0(~

,

2

0

Nrwhere

ry

ij

ijjij

),0(~

,

000

0000

Nuwhere

u

j

jj

ijjij ruY 000Fixed Effect Random Effects

Page 14: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Level 2 (Group) Predictors

),0(~),0(~ 000

2

020210100

0202101000

0

NuandNr

ruzzY

uzz

ry

jij

ijjij

jj

ijjij

12/0

1/2

011

14

SPSS(R

) M

IXED

MO

DELS

Page 15: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Level 1 (individual) variables

ijjjij rxy 110

jjjj uu 11010000 ;

ijjjij rxuuxy 11011000

12/0

1/2

011

15

SPSS(R

) M

IXED

MO

DELS

Page 16: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Level 1 and Level 2

12/0

1/2

011

SPSS(

R)

MIX

ED

MO

DELS

16

1110

0100

1

0

2

110

111111010100

1111101

0101000

110

,0

0~

),0(~

Nu

uand

Nrwhere

rxuu

zxxzy

uz

uz

rxy

j

j

ij

ijijjj

jijijjij

jjj

jjj

ijijjjij

Page 17: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Grouped data predictors

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

17

Level Type/Field Fixed Effect

Interaction

Random Effect

Level 1 (Within

groups)

Continuous/

Covariate

With Level 2 predictor

by default (can be taken

off if n.s.)

With Level 1 predictor if

it is of research interest.

Yes, but test if it

is necessary

Level 1 (Within

groups)

Categorical/ Factors

Level 2 (Between

groups)

Continuous/

Covariate

With Level 1 predictor

by default (can be taken

off if n.s.)

With Level 2 predictor if

it is of research interest.

No.

Level 2 (Between

groups)

Categorical/ Factors

Grouping Variable Continuous/Subjects

on first dialog

window

No. Unless it is also a

level 1 predictor

As grouping

variable

Page 18: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

A clustered data example

High school and beyond

Example of HLM par excellence

Students within schools

Schools by sector: Catholic-Public

DV: Math achievement

Predictors: SES, MEANSES, school size,

minority, sex, others.

From Bryk & Raudenbush via nlme package

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

18

Page 19: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

19

Page 20: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

20

Page 21: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Unconditional means model

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

21

Page 22: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

22

Page 23: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

23

Page 24: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Adding level 2 predictor

12/0

1/2

011

SPSS(

R)

MIX

ED

MO

DELS

24

Page 25: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

25

Page 26: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

26

Page 27: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Adding level 1 predictor

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

27

Page 28: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

28

Page 29: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

29

Page 30: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Level 1 and 2 predictors

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

30

Page 31: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

31

Page 32: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Lab 1: Clustered Data

File: BrykRauden_HighSchool&Beyond.sav

inside data folder

Open on SPSS

Fit Unconditional means model:

Find the parameters and estimate the intra-

class correlation given by this formula

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

32

Page 33: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Lab 1: continuation

Add a level 2 and a level 1 predictor one at

a time

Why is Sector not a grouping variable?

What would happen if there were more

than two levels of Sector?

Try other predictors, one or two at a time

and note the results

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

33

Page 34: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

LONGITUDINAL OUTCOME ANALYSIS

Part II

12/01/2011 SPSS(R) MIXED MODELS 34

Page 35: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Time variable as level 1 predictor

Time variable is continuous

Adds a random effect

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

35

ijjjij rtimey 10

jjjj uu 11010000 ;

ijjjij rtimeuutimey 101000

Page 36: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Adding time varying predictor

Level 1 predictor

Complex random effects covariance

structure:

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

36

ijjjjij rxutimeuuxtimey 12101201000

222120

121110

020100

2

1

0

2

,

0

0

0

~

),0(~

N

u

u

u

and

Nrwhere

j

j

j

ij

Page 37: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Adding a time constant predictor

Level 2 predictor

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

37

ijjj

jjij

rtimeuu

ztimetimezy

10

1111010100

Page 38: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

38

Time relationship

(level)

Type/Field Fixed Effect

Interaction

Random Effect

Time variant

(Level 1- within

subjects)

Continuous/ Covariate With Level 2 predictor

by default (can be taken

off if n.s.)

With other Level 1

predictors if it is of

research interest. It is

unlikely an interaction

with time would be of

interest

Yes, but test if it

is necessary

Time variant

(Level 1- within

subjects)

Categorical/ Factors

Time constant(

Level 2 – between

subjects)

Continuous/ Covariate With time predictor by

default.

With Level 2 predictor

if it is of research

interest.

No.

Time

constant(Level 2 -

Between subjects)

Categorical/ Factors

Grouping Variable Continuous/Subjects

on first dialog window

No. Unless it is also a

level 1 predictor

As grouping

variable

Time variable Continuous/Covariate With level 2 predictors Yes, but test if it

is necessary

Page 39: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Covariance Structures

AR(1)

Compound symmetry

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

39

Page 40: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Wide vs Long format

Open the wide.sav file inside the data folder

◦ There are columns for each time point for each

time varying variable, including the DV (DV is

wm)

Open the long.sav file inside the data folder

◦ There is one column per predictor and a “wave”

variable to indicate time. Notice that Centered

Age could also be taken as a time variable

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

40

Page 41: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Re-structuring datasets in SPSS

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

41

Page 42: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

42

Page 43: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

43

Page 44: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

44

Page 45: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

45

Page 46: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

46

Page 47: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

47

Page 48: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

48

Page 49: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

49

Page 50: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Lab 2: Longitudinal data 3 time points

Simulated data: Development of Working

Memory from 10 to 12 years of age

Somewhat accelerated longitudinal design

Variables in the long.sav file ID, a time

constant variable (const), Age in months, a

time varying covariate (cov), WM.

Also: Age in years (aiy), Age in years rounded

(aiy_r), Age in years centered (aiy_c) and

Age in months centered (aim_c)

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

50

Page 51: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

51

Page 52: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

52

Page 53: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

53

Page 54: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

54

Page 55: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

55

Page 56: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Lab continuation

Try different time variables and different

covariance structures

Also add the time constant predictor and

the time varying predictor accordingly

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

56

Page 57: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Lab 3: Unbalanced data

Simulated data inspired by consulting case

Longitudinal study on depression and

treatment techniques

Up to five timepoints : baseline, one week,

one month, three months, and six months

follow ups

Not all participants with observations at all

points, at least two timepoints

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

57

Page 58: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Variables in dep.sav

id: Subject ID;time: in months 0, .25, 1,3,6,

centered at baseline

cond: treatment condition

Changes over time:

◦ LDep3: Depression scale from 0 to 5

◦ selfest: Self-esteem scale from 1 to 7

Time constant: Age, anxiety, avoidance,

extraversion openness, Frequency(number

of observations for the subject)

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

58

Page 59: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

59

Page 60: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

60

Page 61: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

61

Page 62: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

62

Page 63: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

63

Page 64: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

If random effect of time not needed…

12/0

1/2

011

SPSS(

R)

MIX

ED

MO

DELS

64

Page 65: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Adding treatment condition

12/0

1/2

011

SPSS(

R)

MIX

ED

MO

DELS

65

Page 66: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

66

Page 67: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Adding time constant predictor

12/0

1/2

011

SPSS(

R)

MIX

ED

MO

DELS

67

Page 68: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

68

Page 69: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Adding time varying predictor

12/0

1/2

011

SPSS(

R)

MIX

ED

MO

DELS

69

Page 70: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

70

Page 71: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

71

Page 72: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Test for different covariance structures

12/0

1/2

011

SPSS(

R)

MIX

ED

MO

DELS

72

Page 73: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

Lab 3: Fit different models

Try adding different predictors

Change DV from depression to self-esteem

Center the time variable at different

timepoints:

◦ At 1 month assuming that was the length of the

treatment

◦ At 6 months to test for differences among

conditions in maintaining results

What if time is not a significant predictor of

the DV?12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

73

Page 74: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

THANK YOU

Manolo ROMERO ESCOBAR: [email protected]

12/01/2011 SPSS(R) MIXED MODELS 74

Page 75: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

APPENDIX: Re-structuring using syntax

75

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

Page 76: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

76

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS

Page 77: SLIDES Mixed effects modeling using SPSS -  · PDF fileMIXED EFFECTS MODELING USING SPSS® Instructor: Manolo ROMERO ESCOBAR   12 January 2011 At the Research and Outcome

77

12/0

1/2

011

SPSS(R

) M

IXED

MO

DELS