Hello, I am working on running a ZIP model with complex survey data, and want to use a domain statement to get results for males and females. But, I keep getting errors when I run the %SurveyGenmod macro. This is my first time using a macro, so I'm likely missing something obvious. In the documentation, the authors list a standard macro code and then apply that code to different examples. However, the applied codes leave off some of the things that the base code had. I've tried the codes in different ways, using the ZIP code they shared and also using the base code they shared, and I keep getting the same errors/warnings. Does anyone have any suggestions for how I can troubleshoot this issue? I really appreciate the support!! Liz Link to documentation: https://support.sas.com/resources/papers/proceedings17/0268-2017.pdf Code: %surveygenmod(data=lesotho.lesotho_master10162023, y=HIVrisksum123, x= SV18_r EV18_r PVTOT18_r Q55dichot Q51_01 Q2 orphan3 Q9a_r, dist=zip, xzip= Q2 orphan3 Q9a_r sv18_r ev18_r pvtot18_r Q55dichot Q51_01, link=log, weight = individual_weight1, strata=DISTRICT, cluster=PSU, domain=fem, scale=, vadjust=n, alpha=0.05); Error: 65 %surveygenmod(data=lesotho.lesotho_master10162023, y=HIVrisksum123, x= SV18_r EV18_r PVTOT18_r - 180 65 ! Q55dichot Q51_01 Q2 orphan3 Q9a_r, WARNING: Apparent invocation of macro SURVEYGENMOD not resolved. ERROR 180-322: Statement is not valid or it is used out of proper order. 66 dist=zip, xzip= Q2 orphan3 Q9a_r sv18_r ev18_r pvtot18_r Q55dichot Q51_01, 67 link=log, weight = individual_weight1, strata=DISTRICT, cluster=PSU, domain=fem, scale=, 68 vadjust=n, alpha=0.05)
... View more