Log-Linear Models & Dependent Samples Feng Ye, Xiao Guo, Jing Wang
Outline Symmetry, Quasi-independence & Quasi- symmetry. Marginal Homogeneity & Quasi-symmetry. Ordinal Quasi-symmetry Model. Conclusion.
Quasi-independence Model Model structure Assumption: Independent model holds for off diagonal cells. Model fit df = (I-1)^2-I
Symmetry Model structure Assumption: The off diagonal cells have equal expected counts. Model fit: df = I^2-[I+I(I-1)/2]
Symmetry 123Total Total172023
Quasi-symmetry Model structure Model fit df = (I-2)(I-1)/2 Symmetry: Independence:
Application Each week Variety magazine summarizes reviews of new movies by critics in several cities. Each review is categorized as pro, con, or mixed, according to whether the overall evaluation is positive, negative, or a mixture of the two. April 1995 through September 1996 for Chicago film critics Gene Siskel and Roger Ebert.
Application Reviews of new movies by critics. Ebert SiskelConMixedPro Con24813 Mixed81311 Pro10964
Output & Interpretation Model df G2 p-value Quasi-Independence Symmetry Quasi-symmetry
Quasi-independence Con Mixed pro e.g exp( )=4.41
Symmetry = Quasi-symmetry + Marginal homogeneity Quasi-symmetry + Marginal homogeneity = Symmetry Fit statistics for marginal homogeneity Marginal Homogeneity & Quasi-symmetry
Symmetry Model Criteria For Assessing Goodness Of Fit Criterion DF Value Value/DF Deviance Scaled Deviance Pearson Chi-Square Scaled Pearson X Log Likelihood Quasi-Symmetry Model Criteria For Assessing Goodness Of Fit Criterion DF Value Value/DF Deviance Scaled Deviance Pearson Chi-Square Scaled Pearson X Log Likelihood G 2 (S/QS) = = with df = 2, showing marginal homogeneity is plausible.
Marginal Homogeneity Testing
Marginal homogeneity is the special case β j =0. Specifying design matrix to produce expected frequency {µ ab }. Using G 2 and X 2 tests marginal homogeneity, with df=I-1
d a = p +a – p a+ ; d’ =( d 1,….d I-1 ) Covariance matrix V with elements: V ab = -(p ab + p ba ) – (p +a – p a+ )(p +b – p b+ ) V aa = p +a + p a+ -2p aa – (p +a – p a+ ) 2 Under marginal homogeneity, E(d) = 0. W is asymptotically chi-squared with df = I-1.
Marginal Models Criteria For Assessing Goodness Of Fit Criterion DF Value Value/DF Deviance Scaled Deviance Pearson Chi-Square Scaled Pearson X Log Likelihood Analysis of Variance Source DF Chi-Square Pr > ChiSq Intercept <.0001 review Residual 0..
Ordinal Quasi-symmetry Model Quasi-independence, quasi-symmetry, symmetry models for square tables treat classifications as nominal. Changing the constraints for log linear model to obtain reduced model for ordered response. Model structure has a linear trend. Where is the ordered scores
Ordinal Quasi-symmetry Model Parameter estimation & interpretation 1. Fitted marginal counts ==(?) observed marginal counts 2. Dividing the first two equations by n indicates the same means. Goodness of fit: Checking the distance between reduced model and saturated model.
Logit Representation Logit model Interpretation 1. difference between marginal distribution 2. marginal homogeneity 3. Identify as binomial with trials, and fit a logit model with no intercept and predictor
Marginal Homogeneity Marginal model (cumulative logits) marginal homogeneity : Ordinal quasi-sym model 1. At the condition of ordinal quasi-symmetry marginal homogeneity is equivalent to symmetry 2. Fit statistic
Application Data 1 Reviews of new movies by critics. Ebert SiskelConMixedPro Con24813 Mixed81311 Pro10964
Output & Interpretation Output Marginal homogeneity? 1. No meaning to check if when ordinal quasi-symmetry fits poorly. 2. Using marginal model is a good way. 3. Check the symmetry under the condition of ordinal quasi-symmetry.
Conclusion Summary statistics provide an overall picture of square tables. Kappa & Percentage Log-linear provides a valuable addition even an alternative to summary statistic. 1. Quasi-symmetry is the most general model for square table. 2. Adding or deleting variables from log-linear models provides different useful models. 3. Quasi-symmetry models proposes a good instrument for marginal homogeneity.