Hello Stata Listers,
I have a dataset with some collinearity and small sample bias so have opted for using firthlogit as opposed to a traditional logit model. However, when I run the same command using firthlogit instead of just logit, the model never converges. I have tried to run this on Stata 16 and Stata 18 and the model estimates are never produced (i.e., I let the machines run for several hours with no result). Is there something I'm doing wrong here? I've looked at the data and other model specifications work fine--it's just the firthlogit command that is causing an issue.
(I have had to break this several times because nothing happens in the Results area of Stata.)
I have a dataset with some collinearity and small sample bias so have opted for using firthlogit as opposed to a traditional logit model. However, when I run the same command using firthlogit instead of just logit, the model never converges. I have tried to run this on Stata 16 and Stata 18 and the model estimates are never produced (i.e., I let the machines run for several hours with no result). Is there something I'm doing wrong here? I've looked at the data and other model specifications work fine--it's just the firthlogit command that is causing an issue.
Code:
logit stateorder medicaid_expansion percapita_deaths ideology_diff prop_neighbors div_gov demgov, nolog
HTML Code:
note: div_gov != 0 predicts success perfectly div_gov dropped and 1107132 obs not used note: demgov != 0 predicts success perfectly demgov dropped and 1277460 obs not used Logistic regression Number of obs = 1,873,608 LR chi2(4) = 218763.82 Prob > chi2 = 0.0000 Log likelihood = -1189304.2 Pseudo R2 = 0.0842 ------------------------------------------------------------------------------------ stateorder | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------------+---------------------------------------------------------------- medicaid_expansion | .7679144 .0021245 361.46 0.000 .7637505 .7720783 percapita_deaths | 430.3479 2.385946 180.37 0.000 425.6715 435.0242 ideology_diff | .0130708 .0001466 89.17 0.000 .0127835 .0133581 prop_neighbors | -2.810622 .0084456 -332.79 0.000 -2.827175 -2.794069 div_gov | 0 (omitted) demgov | 0 (omitted) _cons | .8516809 .0064683 131.67 0.000 .8390034 .8643585 ------------------------------------------------------------------------------------
Code:
firthlogit stateorder medicaid_expansion percapita_deaths ideology_diff prop_neighbors div_gov##demgov, nolog
Comment