Download presentation

Presentation is loading. Please wait.

Published byNathen Goltry Modified over 2 years ago

1
LOGLINEAR MODELS FOR INDEPENDENCE AND INTERACTION IN THREE-WAY TABLES BY ENI SUMARMININGSIH, SSI, MM

2
Table Structure For Three Dimensions When all variables are categorical, a multidimensional contingency table displays the data We illustrate ideas using thr three-variables case. Denote the variables by X, Y, and Z. We display the distribution of X-Y cell count at different level of Z using cross sections of the three way contingency table (called partial tables)

3
The two way contingency table obtained by combining the partial table is called the X-Y marginal table (this table ignores Z)

4
Death Penalty Example Defendants race Victims Race Death PenaltyPercentage Yes YesNo White 1913212.6 Black090 White115217.5 Black6975.8

5
Marginal table Defendants Race Death PenaltyTotal YesNo White19141160 Black17149166 36290326

6
Partial and Marginal Odd Ratio Partial Odd ratio describe the association when the third variable is controlled The Marginal Odd ratio describe the association when the Third variable is ignored (i.e when we sum the counts over the levels of the third variable to obtain a marginal two-way table)

7
AssociationVariables P-DP-VD-V Marginal1.182.7125.99 PartialLevel 10.672.8022.04 Level 20.793.2925.90

8
Types of Independence A three-way IXJXK cross-classification of response variables X, Y, and Z has several potential types of independence The three variables are mutually independent when

9
Similarly, X could be jointly independent of Y and Z, or Z could be jointly independent of X and Y. Mutual independence (8.5) implies joint independence of any one variable from the others.

11
Homogeneous Association and Three-Factor Interaction

12
Marginal vs Conditional Independence Partial association can be quite different from marginal association For further illustration, we now see that conditional independence of X and Y, given Z, does not imply marginal independence of X and Y The joint probability in Table 5.5 show hypothetical relationship among three variables for new graduate of a university

13
Table 5.5 Joint Probability MajorGenderIncome LowHigh Liberal ArtFemale0.180.12 Male0.120.08 Science or Engineering Female0.020.08 Male0.080.32 TotalFemale0.20 Male0.200.40

15
Marginal Probability of Y and X GenderIncome lowhigh Female0.18+0.02=0.200.12+0.08=0.20 Male0.12+0.08=0.200.08+0.32=0.40 Total0.400.60

20
A model that permits all three pairs to be conditionally dependent is Model 8.11. is called the loglinear model of homogeneous association or of no three-factor interaction.

21
Loglinear Models for Three Dimensions

23
The general loglinear model for a three-way table is This model has as many parameters as observations and describes all possible positive i jk Setting certain parameters equal to zero in 8.12. yields the models introduced previously. Table 8.2 lists some of these models. To ease referring to models, Table 8.2 assigns to each model a symbol that lists the highest- order term(s) for each variable

24
Interpreting Model Parameters Interpretations of loglinear model parameters use their highest-order terms. For instance, interpretations for model (8.11). use the two-factor terms to describe conditional odds ratios At a fixed level k of Z, the conditional association between X and Y uses (I- 1)(J – 1). odds ratios, such as the local odds ratios Similarly, ( I – 1)(K – 1) odds ratios { i (j)k } describe XZ conditional association, and (J – 1)(K – 1) odds ratios { (i) jk } describe YZ conditional association.

25
Loglinear models have characterizations using constraints on conditional odds ratios. For instance, conditional independence of X and Y is equivalent to { i j(k) } = 1, i=1,..., I-1, j=1,..., J-1, k=1,..., K. substituting (8.11) for model (XY, XZ, YZ) into log i j(k) yields Any model not having the three-factor interaction term has a homogeneous association for each pair of variables.

26
For 2x2x2 tables

27
Alcohol, Cigarette, and Marijuana Use Example Table 8.3 refers to a 1992 survey by the Wright State University School of Medicine and the United Health Services in Dayton, Ohio. The survey asked 2276 students in their final year of high school in a nonurban area near Dayton, Ohio whether they had ever used alcohol, cigarettes, or marijuana. Denote the variables in this 222 table by A for alcohol use, C for cigarette use, and M for marijuana use.

29
Table 8.5 illustrates model association patterns by presenting estimated conditional and marginal odds ratios For example, the entry 1.0 for the AC conditional association for the model (AM, CM) of AC conditional independence is the common value of the AC fitted odds ratios at the two levels of M,

30
The entry 2.7 for the AC marginal association for this model is the odds ratio for the marginal AC fitted table Table 8.5 shows that estimated conditional odds ratios equal 1.0 for each pairwise term not appearing in a model, such as the AC association in model ( AM, CM). For that model, the estimated marginal AC odds ratio differs from 1.0, since conditional independence does not imply marginal independence. Model (AC, AM, CM) permits all pairwise associations but maintains homogeneous odds ratios between two variables at each level of the third. The AC fitted conditional odds ratios for this model equal 7.8. One can calculate this odds ratio using the models fitted values at either level of M, or from (8.14) using

31
INFERENCE FOR LOGLINEAR MODELS Chi-Squared Goodness-of-Fit Tests As usual, X 2 and G 2 test whether a model holds by comparing cell fitted values to observed counts For the student survey (Table 8.3), Table 8.6 shows results of testing fit for several loglinear models.

32
Models that lack any association term fit poorly The model ( AC, AM, CM) that has all pairwise associations fits well (P= 0.54) It is suggested by other criteria also, such as minimizing AIC= - 2(maximized log likelihood - number of parameters in model) or equivalently, minimizing [G 2 - 2(df)].

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google