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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 834 views
  • 0 likes
  • 1 in conversation