BookmarkSubscribeRSS Feed
liiiiiiiib
Calcite | Level 5

Hi. I want to produce the duration adjusted prevalence of Diabetes complications by gender. I used this link: https://www.cdc.gov/nchs/tutorials/NHANES/NHANESAnalyses/AgeStandardization/Task1b_SAS92.htm

My questions are: can I use the proportion of each group from the study cohort (my_data) instead of "Standard Proportions for 20-year Age Groups Based on the 2000 U.S. Census Standard Population"? The same for duration, see below code. And do I have to adjust for the interaction term as in the link (sex*duration 0.1305 0.1962 0.2347 0.4386 0 0 0 0)?

Please note: sex is coded as 1 or 2; duration is coded as 1, 2, 3 or 4. Thank you.

proc surveyreg data=final nomcar; strata sdmvstra; cluster sdmvpsu; weight wtmec20yr; class dmdurcat riagendr; domain agegroup*diadmadult;
model dncat= riagendr dmdurcat riagendr*dmdurcat/noint clparm solution vadjust=none;
estimate "male       " riagendr 1 0  dmdurcat 0.1305 0.1962 0.2347 0.4386  riagendr*dmdurcat 0.1305 0.1962 0.2347 0.4386  0 0 0 0  ;
estimate "female    " riagendr 0 1 dmdurcat 0.1305 0.1962 0.2347 0.4386  riagendr*dmdurcat 0 0 0 0 0.1305 0.1962 0.2347 0.4386;
ods output estimates=sexdn;
run; 

 

SAS Innovate 2025: Call for Content

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 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

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.

Discussion stats
  • 0 replies
  • 616 views
  • 0 likes
  • 1 in conversation