I am trying to perform a simple bivariate analysis of multilevel cross sectional data representing egocentric social networks at baseline. Level 1 includes the characteristics of peers/alters and their ties with the ego, which are clustered within egos (survey respondents) representing level 2. I have binary level 2 outcomes (ED or hospitalization in the prior 6 months) and the level 1 exposures variables are primarily categorical (sex, race, type of support, etc).
I understand there are several options in Stata for modeling multilevel data. With xtgee, I'm consistently getting the following error: estimates diverging (correlation > 1).
xtgee emerw1 gendx1, family(binomial) link(logit) i(wspid) corr(exch) vce(robust) eform
With meqrlogit the model does not converge.
meqrlogit emerw1 gendx1 || wspid: , cov(exch) or
Here's a cross tab of the exposure and outcome
Z1 6 months |
received care | B9a gender
in ER | Male Female | Total
---------------+----------------------+----------
No | 1,672 1,857 | 3,529
| 61.25 59.61 | 60.38
---------------+----------------------+----------
Yes | 1,058 1,258 | 2,316
| 38.75 40.39 | 39.62
---------------+----------------------+----------
Total | 2,730 3,115 | 5,845
| 100.00 100.00 | 100.00
Pearson chi2(1) = 1.6171 Pr = 0.203
I understand there are several options in Stata for modeling multilevel data. With xtgee, I'm consistently getting the following error: estimates diverging (correlation > 1).
xtgee emerw1 gendx1, family(binomial) link(logit) i(wspid) corr(exch) vce(robust) eform
With meqrlogit the model does not converge.
meqrlogit emerw1 gendx1 || wspid: , cov(exch) or
Here's a cross tab of the exposure and outcome
Z1 6 months |
received care | B9a gender
in ER | Male Female | Total
---------------+----------------------+----------
No | 1,672 1,857 | 3,529
| 61.25 59.61 | 60.38
---------------+----------------------+----------
Yes | 1,058 1,258 | 2,316
| 38.75 40.39 | 39.62
---------------+----------------------+----------
Total | 2,730 3,115 | 5,845
| 100.00 100.00 | 100.00
Pearson chi2(1) = 1.6171 Pr = 0.203
Comment