Hello,
Below is my code and output that I am getting from the code. My main independent variable is race and it has 2 levels(Hispanics and others). However, even after including the class statement, i do not get the estimates for the sublevels of any variable such as race, region, sex etc.
Can you please tell me why so?
PROC SURVEYREG DATA=MEPS.finalxx;
weight PERWT15F;
Strata VARSTR;
Cluster VARPSU;
class REGION15(ref="1") sex(ref="1") RACE(ref="1") MARRY15X(ref="1") EDUYRDG(ref="1")
TMTKUS42 (ref="1")chronic (ref="1")/ param=ref;
MODEL MPR= REGION15 sex RACE MARRY15X EDUYRDG TMTKUS42 AGE15X chronic FAMINC15 TOTAL_COST TTLP15X;
domain race=1;
RUN;
Please see the attachment for the result I am getting. Thank you.
PROC SURVEYREG does not support the PARAM=REF option on the CLASS statement, so I suggest you check your SAS log for as error message that says
15 class region14 ... / param=ref;
-----
22
202
NOTE: The previous statement has been deleted.
ERROR 22-322: Syntax error, expecting one of the following: ;,
REF, REFERENCE.
Notice that the error log says that the CLASS statement is being deleted. Therefore the variables are treated as continuous variables.
Get rid of the PARAM= option and that should fix the issue.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.