Dear stata-listers
I have a data set which I would like to save as survey dataset at the
end of my documentation. However when I run my do file which has this
command i.e.
svyset, strata(district) psu(cluster)
Stata reports an error : invalid syntax r(198);
However when I run svyset from the command window, I do not get any
problems. Where am I going wrong?.
Please help
Are you sure it is the -svyset- command that is causing the error? If you
are using the -run- command, you might try using -do- instead, as -do- will
echo the commands back to you.