Download presentation
Presentation is loading. Please wait.
Published byTeresa Shepherd Modified over 9 years ago
1
1 The greatest achievement in life is to be able to get up again from failure.
2
2 Categorical Data Analysis Chapter 5 II: Logistic Regression for Qualitative/Mixed Factors
3
3 Anova Type Representation of Factors Binary response variable: Y ~ Bernoulli( ) Qualitative factors: A, B, … SAS textbook Sec 8.4
4
4 Example: Berkeley Admissions Data (Table 2.10) MenWomen Major# of applicants % admitted # of applicants % admitted A8256210882 B560632568 C3253759334 D4173337535 E1912839324 F37363417
5
Anova-Type Logistic Regression 5 Only one factor (eg. Department) Only main effects of two factors Full model
6
Anova-Type Logistic Regression Parameterization (in SAS): The effect at the last level of each factor is set as 0 (Regular) logistic regression expression by dummy variables (one factor example) 6
7
7 Mixed-type Logistic Regression Binary response variable: Y ~ Bernoulli( ) Qualitative factors: A, B, … Quantitative factors: X SAS textbook Sec 8.5
8
8 Example: Horseshoe Crab Dataset is given in Table 4.3, textbook Each female crab had a male crab attached to her in her nest; other males residing nearby her are called satellites Y= # of satellites X= female crab’s color (C), spine condition (S), weight (Wt), and carapace width (W) –C = 1 to 4 (light to dark); –S = 1 to 3 (good to worst)
9
Mixed-Type Logistic Regression 9 Numerical factors Wt, W and: Only one factor (eg. color) Only main effects of two factors With interaction effects (Not the saturated model)
10
Mixed-Type Logistic Regression Parameterization (PROC GENMOD in SAS): The effect at the last level of each factor is set as 0 (Regular) logistic regression expression by dummy variables (C + W example) 10
11
11 Quantitative Treatment of Ordinal factors Assign scores to its categories for each ordinal factor Treat the ordinal factors as quantitative factors to fit GLM e.g. color
12
Goodness of Fit Deviance or comparison to the full model Residuals Model comparisons (L-R tests) 12
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.