Problem Using Sampling Weights
Posted: Fri Mar 09, 2018 8:04 pm
Hello,
I am using the runmlwin command in STATA 13. the simple model I am trying out is working fine when no sampling weights are given.
. runmlwin x_out cons if gender~=. & pwt1~=., level2(group: cons) level1(ind:) discrete(distribution(binomial) link(logit) denominator(cons) pql2)
> maxiterations(30)
However, when I introduce weights, MLwiN stops working:
. runmlwin x_out cons if gender~=. & pwt1~=., level2(group: cons, weightvar(pwt2)) level1(ind:, weightvar(pwt1)) discrete(distribution(binomial) l
> ink(logit) denominator(cons) pql2) maxiterations(30)
Following error is shown in STATA:
The model did not run properly in MLwiN. You most likely clicked the 'Abort Macro' button in MLwiN, rather than the 'Resume Macro' button.
r(198);
Kindly let me know if I did anything wrong here.
Thanks,
Soumava
I am using the runmlwin command in STATA 13. the simple model I am trying out is working fine when no sampling weights are given.
. runmlwin x_out cons if gender~=. & pwt1~=., level2(group: cons) level1(ind:) discrete(distribution(binomial) link(logit) denominator(cons) pql2)
> maxiterations(30)
However, when I introduce weights, MLwiN stops working:
. runmlwin x_out cons if gender~=. & pwt1~=., level2(group: cons, weightvar(pwt2)) level1(ind:, weightvar(pwt1)) discrete(distribution(binomial) l
> ink(logit) denominator(cons) pql2) maxiterations(30)
Following error is shown in STATA:
The model did not run properly in MLwiN. You most likely clicked the 'Abort Macro' button in MLwiN, rather than the 'Resume Macro' button.
r(198);
Kindly let me know if I did anything wrong here.
Thanks,
Soumava