Hello Statalist,
I tried searching the forum boards/internet and could not find a thread that solved my issue, nor one that appeared to point me to a source to investigate further. I'm still looking at the time of writing this as well. Any help would be greatly appreciated.
Data background
Looking at an outcome variable that is binary (0 n=150; 1 n=1,365) and have 2 time points (2016 and 2017) as well as demographics (age, sex, and education level). The data is in long form.
Analysis
Looking to see the effect of being in the program for a year on the outcome variable adjusted for the demographics. Using a mixed effects logistic regression with random intercept at the participant level.
Issue
Model fails to converge with -svy- prefix; the following code fails:
with the following error:
r(403);
convergence not achieved
an error occurred when svy executed melogit
Attempted the model without the -svy- prefix and it runs just fine; the following code does work:
I apologize in advance if I did not include any information that would help diagnose the issue. I also would like to thank you all in advance for any help and advice.
Best,
Corey
I tried searching the forum boards/internet and could not find a thread that solved my issue, nor one that appeared to point me to a source to investigate further. I'm still looking at the time of writing this as well. Any help would be greatly appreciated.
Data background
Looking at an outcome variable that is binary (0 n=150; 1 n=1,365) and have 2 time points (2016 and 2017) as well as demographics (age, sex, and education level). The data is in long form.
Analysis
Looking to see the effect of being in the program for a year on the outcome variable adjusted for the demographics. Using a mixed effects logistic regression with random intercept at the participant level.
Issue
Model fails to converge with -svy- prefix; the following code fails:
Code:
svy: melogit trytoquit i.yr_dummy, or || respondentid:
r(403);
convergence not achieved
an error occurred when svy executed melogit
Attempted the model without the -svy- prefix and it runs just fine; the following code does work:
Code:
melogit trytoquit i.yr_dummy, or || respondentid:
I apologize in advance if I did not include any information that would help diagnose the issue. I also would like to thank you all in advance for any help and advice.
Best,
Corey
Comment