Okay, let's break down the interpretation of dummy variable coefficients in a Generalized Linear Model (GLM) using a logit link function. This specific setup is commonly known as Logistic Regression.
Core Concept: Log-Odds
The logit link function connects the linear predictor (the combination of coefficients and predictor variables) to the probability of the outcome (usually denoted as Y=1) via the logarithm of the odds (log-odds):
log(p / (1-p)) = β₀ + β₁X₁ + β₂X₂ + ... + β<0xE2><0x82><0x99>X<0xE2><0x82><0x99>
Where:
p is the probability of the event of interest (Y=1).
p / (1-p) is the odds of the event occurring.
log(p / (1-p)) is the log-odds of the event occurring.
β₀ is the intercept.
β₁, β₂, ..., β<0xE2><0x82><0x99> are the coefficients for the predictor variables X₁, X₂, ..., X<0xE2><0x82><0x99>.
Interpreting Dummy Variable Coefficients (β)
When one of the X variables is a dummy variable (typically coded 0 or 1), representing a specific category compared to a reference category:
-
Direct Interpretation (Log-Odds Scale): The coefficient β for a dummy variable represents the difference in the log-odds of the outcome (Y=1) between the category represented by the dummy variable (coded as 1) and the reference category (coded as 0), holding all other predictor variables constant.
- If
β is positive: The log-odds of the outcome are higher for the dummy variable's category compared to the reference category.
- If
β is negative: The log-odds of the outcome are lower for the dummy variable's category compared to the reference category.
- If
β is zero: There is no difference in the log-odds of the outcome between the dummy variable's category and the reference category.
-
More Intuitive Interpretation (Odds Ratio Scale): Since log-odds are not very intuitive, we often exponentiate the coefficient (exp(β)) to get an Odds Ratio (OR).
- The odds ratio
exp(β) represents how many times larger or smaller the odds of the outcome (Y=1) are for the category represented by the dummy variable (coded as 1) compared to the reference category (coded as 0), holding all other predictor variables constant.
- Interpretation of
exp(β) (Odds Ratio):
- If
exp(β) > 1: The odds of the outcome are exp(β) times higher for the dummy group compared to the reference group. (e.g., If exp(β) = 1.5, the odds are 50% higher for the dummy group).
- If
exp(β) < 1: The odds of the outcome are exp(β) times lower for the dummy group compared to the reference group. (e.g., If exp(β) = 0.7, the odds are 30% lower for the dummy group, or the odds are 0.7 times the odds of the reference group).
- If
exp(β) = 1 (meaning β = 0): The odds of the outcome are the same for the dummy group and the reference group.
Example:
Suppose we model the probability of passing an exam (Y=1) based on Study_Group (Categorical: "Individual" = Reference, "Group A", "Group B") and Hours_Studied (Continuous).
We create dummy variables:
Group_A_Dummy (1 if Study_Group = "Group A", 0 otherwise)
Group_B_Dummy (1 if Study_Group = "Group B", 0 otherwise)
The model is:
log(p_pass / (1-p_pass)) = β₀ + β₁*Group_A_Dummy + β₂*Group_B_Dummy + β₃*Hours_Studied
Suppose the fitted coefficients are:
Interpretation:
- Log-Odds:
- Holding hours studied constant, the log-odds of passing for students in Group A are 0.693 higher than for students studying individually (the reference group).
- Holding hours studied constant, the log-odds of passing for students in Group B are 0.223 lower than for students studying individually.
- Odds Ratios:
exp(β₁) = exp(0.693) ≈ 2.0: Holding hours studied constant, the odds of passing for students in Group A are approximately twice the odds for students studying individually.
exp(β₂) = exp(-0.223) ≈ 0.8: Holding hours studied constant, the odds of passing for students in Group B are approximately 0.8 times (or 20% lower than) the odds for students studying individually.
In Summary:
The coefficient of a dummy variable in a GLM with a logit link indicates the change in the log-odds of the outcome associated with being in that category compared to the reference category, controlling for other variables. Exponentiating the coefficient gives the odds ratio, which provides a more intuitive multiplicative comparison of the odds between the category and the reference category.