Presentation is loading. Please wait.

Presentation is loading. Please wait.

HIERARCHICAL LINEAR MODELS. NESTED DESIGNS A factor A is said to be nested in factor B if the levels of A are divided among the levels of B. This is given.

Similar presentations


Presentation on theme: "HIERARCHICAL LINEAR MODELS. NESTED DESIGNS A factor A is said to be nested in factor B if the levels of A are divided among the levels of B. This is given."— Presentation transcript:

1 HIERARCHICAL LINEAR MODELS

2 NESTED DESIGNS A factor A is said to be nested in factor B if the levels of A are divided among the levels of B. This is given the notation A(B). We have encountered nesting before, since Subjects are typically nested in Treatment, S(T), in the randomized two group experiment.

3 NESTED DESIGNS

4

5 ANOVA TABLE Note: no interactions can occur between nested factors

6 ESTIMATING VARIANCES  2 C = (MS C – MS P )/p Conceptually this is = (  2  +p  2 c -  2  )/p 

7 TESTING CONTRASTS Thus, if one wanted to compare School 1 to School 2, the contrast would be C 12 = [ X school 1 - X school 2 ] Since the school mean is equal to overall mean + school 1 effect + error of school: X school 1 = ...+  1. + e 1.,

8 TESTING CONTRASTS the variance of School 1 is VAR(X school 1 ) = {  2  +  2 S }/s = { MS(P(C(S))) + [MS(S) - MS(C(S)]/cp} / s Then t = C 12 /{ 2[MS(P(C(S)))+[MS(S)-MS(C(S)]/cp]/s} which is t-distributed with 1, df= Satterthwaite approximation

9 Satterthwaite approximation df= { cpMS(P(C(S)))/s + [MS(S) - MS(C(S)]/s } 2 {cpMS(P(C(S)))/s } 2 + {[MS(S)} 2 + {MS(C(S)]/s } 2 (p-1)cscp(s-1)p(c-1)

10 HLM - GLM differences GLM uses incorrect error terms in HLM designs –Multiple comparisons using GLM estimates will be incorrect in many designs HLM uses estimates of all variances associated with an effect to calculate error terms

11 Repeated Measures Multiple measurements on the same individual –Time series –Identically scaled variables Measurements on related individuals or units –Siblings (youngest to oldest among trios of brothers) –Spatially ordered observations along a dimension

12 WITHIN-GROUP DESIGNS Within group designs We encountered a repeated measures design in Chapter Six in the guise of the dependent t-test design. : _ _ t = x 1. – x 2. / s d where s d = [ ( s 2 1 + s 2 2 – 2 r 12 s 1 s 2 )/n ] 1/2

13 WITHIN-GROUP DESIGNS MODEL y ij =  +  i +  j + e ij where y ij = score of person i at time j,  = mean of all persons over all occasions,  i = effect of person i,  j = effect of occasion j, e ij = error or unpredictable part of score.

14

15 EXPECTED MEAN SQUARES FOR WITHIN-GROUP DESIGN SourcedfExpected mean square PP-1  2 e + O  2  OO-1  2 e +  2  + P  2  PO (P-1)(O-1)  2 e +  2  error 0  2 e Table 11.1: Expected mean square table for P x O design

16 EXPECTED MEAN SQUARES FOR WITHIN-GROUP DESIGN ANOVA Table SourcedfSS MS F Within-subject PersonP-1O  (y i. – y.. ) 2 SS P /(P-1) - Occasion O-1 P  (y.j – y.. ) 2 SS O /(O-1)MS O /MS PO P x O(P-1)(O-1)  ( y ij – y.. ) 2 SS PO /(P-1)(O-1) - error 00 -

17 VENN DIAGRAM FOR WITHIN-GROUP DESIGN

18 SPHERICITY ASSUMPTION  ij =  ij for all j, j (equal covariances) and  ij =  ij for all I and j (equal variances) By treating each occasion as a variable, we can represent this covariance matrix, called a compound symmetric matrix, as  11  12  13 …  =  21  22  23 …  31  32  33 …. with  12 =  21 =  31 =  32

19 Testing Sphericity GLM uses Huynh-Feldt or Greenhouse- Geisser corrections to the degrees of freedom as sphericity is violated –reduces degrees of freedom and power HLM allows specifying the form of the covariance matrix –Compound symmetry (sphericity) –Autoregressive processes –Unstructured covariance (no limitations)

20 Factorial Within-Group Designs

21 Between- and Within-group Designs BETWEEN SOURCE dfSSMSFerror term Treat 120204.0P(Treat) Person 18905.0- WITHIN Time 2502512.5 P(Treat) x Time Treat x Time 23015 7.5 P(Treat) x Time P(Treat) x Time 36722.0-

22 Venn Diagram for Between and Within Design

23 Doubly Repeated (Time x Rep) Between and Within Design Treatment Person (Treatment) Time Time x Treatment Person (Treatment) x Time Person (Treatment) x Rep Treatment x Rep Rep Person (Treatment) x Time x Rep Treatment x Rep x Time Time x Rep BETWEENWITHIN

24 HLM-GLM distinctions HLM correctly estimates contrasts for any hierarchical between-factors HLM correctly estimates all within-subject contrasts GLM does not estimate within-subject contrasts correctly

25

26 The corrections to the F-test should be made given that the sphericity test was significant. For Greenhouse-Geisser, the df for the F-test are reduced to 1, N-1 or 1, 1658, so that the F-statistic is still significant at p <.001. For the Huynh and Feldt epsilon statistic, the degrees of freedom are adjusted by the amount.732: df numerator = 3 x.732 = 2.196; df denominator = 4974 x.732 = 3640.968. The fraction df can either be rounded down or a program, such as available in SAS, can provide the exact probability. For the df = 2,3640 the F-statistic is still significant. Kirk (1996) discussed in detail various adjustments and recommends one by Collier, Baker, Mandeville, and Hayes (1967), but the computation is cumbersome; HLM analyses compute it.


Download ppt "HIERARCHICAL LINEAR MODELS. NESTED DESIGNS A factor A is said to be nested in factor B if the levels of A are divided among the levels of B. This is given."

Similar presentations


Ads by Google