I'm having trouble completing a weighted linear regression model using NHANES data, that's previously not been problematic.
My code (which usually works) is
Code:
svyset psu [pweight=exam_wts], strata(stratum) vce(linearized) svy:regress vis_difficulty_score_7 i.MD_3level
Code:
no; data are mi set Use mi svyset to set or query these data; mi svyset has the same syntax as svyset. Perhaps you did not type svyset. Some commands call svyset to obtain information about the settings. In that case, that command is not appropriate for running directly on mi data. Use mi extract to select the data on which you want to run the command, which is probably m=0. r(119);
If anyone had any experience using weighted national database data, and how to troubleshoot this problem, I would really appreciate any advice. Thanks very much for your consideration.
Will
0 Response to Weighted database regression analyses
Post a Comment