Norton and Ai (2003) and Norton, Wang and Ai (2004) discuss methods for
calculating the appropriate marginal effects for interactions in binary
logit/probit models. These functions are direct translations of the Norton,
Wang and Ai (2004) Stata code. These functions are not intended to be
called by the user directly, rather they are called as needed by
intEff
.
logit_cc(obj = obj, int.var = int.var, vars = vars, b = b, X = X)
A binary logit or probit model estimated with glm
.
The name of the interaction variable.
A vector of the two variables involved in the interaction.
Coefficients from the glm
object.
Model matrix from the glm
object.
A data frame with the following variable:
The correctly calucalted marginal effect.
The incorrectly calculated marginal effect following the linear model analogy.
Predicted Pr(Y=1|X).
Standard error of
int_eff
.
The interaction effect divided by its standard error
Norton, Edward C., Hua Wang and Chunrong Ai. 2004. Computing Interaction Effects and Standard Errors in Logit and Probit Models. The Stata Journal 4(2): 154-167.
Ai, Chunrong and Edward C. Norton. 2003. Interaction Terms in Logit and Probit Models. Economics Letters 80(1): 123-129.
Norton, Edward C., Hua Wang and Chunrong Ai. 2004. inteff: Computing Interaction Effects and Standard Errors in Logit and Probit Models, Stata Code.