<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic a question about surveyreg and age-adjustment in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/a-question-about-surveyreg-and-age-adjustment/m-p/790464#M38757</link>
    <description>&lt;P&gt;Hi. I want to produce the duration adjusted prevalence of Diabetes complications by gender. I used this link: &lt;A href="https://www.cdc.gov/nchs/tutorials/NHANES/NHANESAnalyses/AgeStandardization/Task1b_SAS92.htm" target="_blank"&gt;https://www.cdc.gov/nchs/tutorials/NHANES/NHANESAnalyses/AgeStandardization/Task1b_SAS92.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;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)?&lt;/P&gt;&lt;P&gt;Please note: sex is coded as 1 or 2; duration is coded as 1, 2, 3 or 4. Thank you.&lt;/P&gt;&lt;PRE&gt;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;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jan 2022 07:52:18 GMT</pubDate>
    <dc:creator>liiiiiiiib</dc:creator>
    <dc:date>2022-01-17T07:52:18Z</dc:date>
    <item>
      <title>a question about surveyreg and age-adjustment</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/a-question-about-surveyreg-and-age-adjustment/m-p/790464#M38757</link>
      <description>&lt;P&gt;Hi. I want to produce the duration adjusted prevalence of Diabetes complications by gender. I used this link: &lt;A href="https://www.cdc.gov/nchs/tutorials/NHANES/NHANESAnalyses/AgeStandardization/Task1b_SAS92.htm" target="_blank"&gt;https://www.cdc.gov/nchs/tutorials/NHANES/NHANESAnalyses/AgeStandardization/Task1b_SAS92.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;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)?&lt;/P&gt;&lt;P&gt;Please note: sex is coded as 1 or 2; duration is coded as 1, 2, 3 or 4. Thank you.&lt;/P&gt;&lt;PRE&gt;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;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 07:52:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/a-question-about-surveyreg-and-age-adjustment/m-p/790464#M38757</guid>
      <dc:creator>liiiiiiiib</dc:creator>
      <dc:date>2022-01-17T07:52:18Z</dc:date>
    </item>
  </channel>
</rss>

