Hello - we are running data on multilevel survey data that is no longer working after Stata14 update.
Previous code (worked fine!) did a survey set for a PSU1 of school, with final teacher weights and BRR weights:
svyset idschool [pw = tchwgt], brr(trwgt1-trwgt100) fay(0.5)
This worked to run the following multilevel regression commands:
svy: meglm DV IV $tcontrols $scontrols || uniqueid:
Now, the most recent version of Stata (December 01) is giving a number of errors. First, it states:
survey final weights not allowed with multilevel models;
a final weight variable was svyset using the [pw=exp] syntax, but multilevel models require that each stage-level weight variable is
svyset using the stage's corresponding weight() option
an error occurred when svy executed meglm
r(459);
If I change the survey weights to align to the model in the online manual, so that we can have very basic teacher weights:
svyset idschool || _n, weight(tchwgt)
I then get the following errors:
initial values not feasible
an error occurred when svy executed meglm
r(1400);
I understand that this is a hard error to diagnose/treat. We have about 117,819 observations, with roughly 10 control variables, and a standardized DV - but dropping some does not seem to solve the issue.
It is very frustrating because we need to run multilevel models with survey weights, and this was working fine until very recently! Can anyone help or advise how to overcome this error with the current version of Stata14?
Thanks!
Previous code (worked fine!) did a survey set for a PSU1 of school, with final teacher weights and BRR weights:
svyset idschool [pw = tchwgt], brr(trwgt1-trwgt100) fay(0.5)
This worked to run the following multilevel regression commands:
svy: meglm DV IV $tcontrols $scontrols || uniqueid:
Now, the most recent version of Stata (December 01) is giving a number of errors. First, it states:
survey final weights not allowed with multilevel models;
a final weight variable was svyset using the [pw=exp] syntax, but multilevel models require that each stage-level weight variable is
svyset using the stage's corresponding weight() option
an error occurred when svy executed meglm
r(459);
If I change the survey weights to align to the model in the online manual, so that we can have very basic teacher weights:
svyset idschool || _n, weight(tchwgt)
I then get the following errors:
initial values not feasible
an error occurred when svy executed meglm
r(1400);
I understand that this is a hard error to diagnose/treat. We have about 117,819 observations, with roughly 10 control variables, and a standardized DV - but dropping some does not seem to solve the issue.
It is very frustrating because we need to run multilevel models with survey weights, and this was working fine until very recently! Can anyone help or advise how to overcome this error with the current version of Stata14?
Thanks!
Comment