Hi StataList'ers
My question is about the equivalence of melogit and meqrlogit. I understand from my reading that these two commands should, for most applications, produce near identical results. I also understand that meqrlogit is the updated version of xtmelogit and is used mostly as a fall back option where there are convergence issues with melogit.
In my current analysis (see output below), however, these two modelling options produce very different results. I would be grateful for any Statalist advice on why this is the case and which of the two commands would be most appropriate given their differences?
Thanks in advance
Jason
************************************************** ******************
My question is about the equivalence of melogit and meqrlogit. I understand from my reading that these two commands should, for most applications, produce near identical results. I also understand that meqrlogit is the updated version of xtmelogit and is used mostly as a fall back option where there are convergence issues with melogit.
In my current analysis (see output below), however, these two modelling options produce very different results. I would be grateful for any Statalist advice on why this is the case and which of the two commands would be most appropriate given their differences?
Thanks in advance
Jason
************************************************** ******************
Code:
melogit r_dishonest || int_uid:, cov(identity) Fitting fixed-effects model: Iteration 0: log likelihood = -10747.072 Iteration 1: log likelihood = -10127.166 Iteration 2: log likelihood = -10124.841 Iteration 3: log likelihood = -10124.84 Refining starting values: Grid node 0: log likelihood = -9877.2839 Fitting full model: Iteration 0: log likelihood = -9877.2839 Iteration 1: log likelihood = -9738.9099 Iteration 2: log likelihood = -9728.8859 Iteration 3: log likelihood = -9728.8644 Iteration 4: log likelihood = -9728.8644 Mixed-effects logistic regression Number of obs = 45,868 Group variable: int_uid Number of groups = 118 Obs per group: min = 3 avg = 388.7 max = 3,861 Integration method: mvaghermite Integration pts. = 7 Wald chi2(0) = . Log likelihood = -9728.8644 Prob > chi2 = . ------------------------------------------------------------------------------ r_dishonest | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- _cons | -2.22833 .0305417 -72.96 0.000 -2.28819 -2.168469 -------------+---------------------------------------------------------------- int_uid | var(_cons)| 1.926716 .329128 1.378519 2.692916 ------------------------------------------------------------------------------ LR test vs. logistic model: chibar2(01) = 791.95 Prob >= chibar2 = 0.0000 ****************************************************************************************** meqrlogit r_dishonest || int_uid:, var cov(identity) Refining starting values: Iteration 0: log likelihood = -9515.8781 Iteration 1: log likelihood = -9502.5658 Iteration 2: log likelihood = -9502.5658 (backed up) Performing gradient-based optimization: Iteration 0: log likelihood = -9502.5658 Iteration 1: log likelihood = -9500.6897 Iteration 2: log likelihood = -9500.6488 Iteration 3: log likelihood = -9500.6487 Mixed-effects logistic regression Number of obs = 45,868 Group variable: int_uid Number of groups = 118 Obs per group: min = 3 avg = 388.7 max = 3,861 Integration points = 7 Wald chi2(0) = . Log likelihood = -9500.6487 Prob > chi2 = . ------------------------------------------------------------------------------ r_dishonest | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- _cons | -3.280746 .0889715 -36.87 0.000 -3.455127 -3.106365 ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Random-effects Parameters | Estimate Std. Err. [95% Conf. Interval] -----------------------------+------------------------------------------------ int_uid: Identity | var(_cons) | .6619889 .1182727 .4664153 .9395689 ------------------------------------------------------------------------------ LR test vs. logistic model: chibar2(01) = 1248.38 Prob >= chibar2 = 0.0000
Comment