The relogit method for zelig computes the same SEs as glm, and uses the same method as glm to calculate predicted probabilities. The only difference in the predicted probabilities in glm and zelig is the parameter estimates used to calculate them. The King and Zeng 2001 paper adjusts the standard errors as follows:
And the predicted probability (where x_0 is a 1 x k vector of chosen values of explanatory variables):
I have since confirmed these results with my own data set. The column, "Manual calc with Zelig estimates" refers to the Zelig parameter estimates but with a standard logistic regression predicted probability calculation. The last two columns utilize the King and Zeng (2001) method for calculating predicted probabilities, with the first one using the SEs provided by the model, and the latter using SEs adjusted using the method in the paper.
The functions I used to calculate the above probabilities are here (with the first function being slightly modified from the referenced blog post):
The
relogit
method forzelig
computes the same SEs asglm
, and uses the same method asglm
to calculate predicted probabilities. The only difference in the predicted probabilities inglm
andzelig
is the parameter estimates used to calculate them. The King and Zeng 2001 paper adjusts the standard errors as follows:And the predicted probability (where x_0 is a 1 x k vector of chosen values of explanatory variables):
I first learned about this in this blog post, which provides a reproducible example: https://blog.methodsconsultants.com/posts/bias-adjustment-for-rare-events-logistic-regression-in-r/
I have since confirmed these results with my own data set. The column, "Manual calc with Zelig estimates" refers to the Zelig parameter estimates but with a standard logistic regression predicted probability calculation. The last two columns utilize the King and Zeng (2001) method for calculating predicted probabilities, with the first one using the SEs provided by the model, and the latter using SEs adjusted using the method in the paper.
The functions I used to calculate the above probabilities are here (with the first function being slightly modified from the referenced blog post):
Thank you for your consideration!
Adam