<?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 age-adjustment in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/a-question-about-age-adjustment/m-p/771130#M37718</link>
    <description>&lt;LI-SPOILER&gt;&amp;nbsp;&lt;/LI-SPOILER&gt;&lt;P&gt;all, I need your help! I'm a beginner in sas and want to do age-adjustment in my sample data. The population is devided into different agegroups according to age like 18-44, 45-64 and 65+.&amp;nbsp; But I still want to standardize the prevanlence so as to compare different prevanlence in different survey cycles. My codes are as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SURVEYREG data=diffcomcat nomcar;&lt;BR /&gt;STRATA sdmvstra;CLUSTER sdmvpsu;CLASS weightcat agegroup;WEIGHT wtmec12yr;DOMAIN sub;&lt;BR /&gt;MODEL microcat=agegroup agegroup agegroup*agegroup/noint solution vadjust=none;&lt;BR /&gt;ESTIMATE '18-44' agegroup 1 0 0 agegroup 0.5305 0.2992 0.1703 agegroup*agegroup 0.5305 0.2992 0.1703 0 0 0 0 0 0 /cl;&lt;BR /&gt;ESTIMATE "45-64" agegroup 0 1 0 agegroup 0.5305 0.2992 0.1703 agegroup*agegroup 0 0 0 0.5305 0.2992 0.1703 0 0 0 /cl;&lt;BR /&gt;ESTIMATE '65+' agegroup 0 0 1 agegroup 0.5305 0.2992 0.1703 agegroup*agegroup 0 0 0 0 0 0 0.5305 0.2992 0.1703/cl;&lt;BR /&gt;ods OUTPUT estimates=microageadj_prev_age;&lt;BR /&gt;*ods select ParameterEstimates Estimates;&lt;BR /&gt;TITLE 'Age-standardized prevalence of persons 18 years and older with microcat-age';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the logs are as follows:&lt;/P&gt;&lt;P&gt;527 PROC SURVEYREG data=diffcomcat nomcar;&lt;BR /&gt;528 STRATA sdmvstra;CLUSTER sdmvpsu;CLASS weightcat agegroup;WEIGHT wtmec12yr;DOMAIN sub;&lt;BR /&gt;529 MODEL microcat=agegroup agegroup agegroup*agegroup/noint solution vadjust=none;&lt;BR /&gt;530 ESTIMATE '18-44' agegroup 1 0 0 agegroup 0.5305 0.2992 0.1703 agegroup*agegroup 0.5305 0.2992 0.1703 0 0 0 0 0 0 /cl;&lt;BR /&gt;531 ESTIMATE "45-64" agegroup 0 1 0 agegroup 0.5305 0.2992 0.1703 agegroup*agegroup 0 0 0 0.5305 0.2992 0.1703 0 0 0 /cl;&lt;BR /&gt;532 ESTIMATE '65+' agegroup 0 0 1 agegroup 0.5305 0.2992 0.1703 agegroup*agegroup 0 0 0 0 0 0 0.5305 0.2992 0.1703/cl;&lt;BR /&gt;533 ods OUTPUT estimates=microageadj_prev_age;&lt;BR /&gt;534 *ods select ParameterEstimates Estimates;&lt;BR /&gt;535 TITLE 'Age-standardized prevalence of persons 18 years and older with microcat-age';&lt;BR /&gt;536 run;&lt;/P&gt;&lt;P&gt;WARNING: More coefficients than levels specified for effect agegroup. Some coefficients will be ignored.&lt;BR /&gt;NOTE: The structure of the Estimates table has changed from an earlier release of SAS.&lt;BR /&gt;WARNING: More coefficients than levels specified for effect agegroup. Some coefficients will be ignored.&lt;BR /&gt;WARNING: More coefficients than levels specified for effect agegroup. Some coefficients will be ignored.&lt;BR /&gt;WARNING: More coefficients than levels specified for effect agegroup. Some coefficients will be ignored.&lt;BR /&gt;WARNING: More coefficients than levels specified for effect agegroup. Some coefficients will be ignored.&lt;BR /&gt;WARNING: More coefficients than levels specified for effect agegroup. Some coefficients will be ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I know the third line in my code looks stupid and wired but I really don't know how to write this code。 In the output, the estimated values do not appear in the second and third groups. So who can help me ????????&amp;nbsp; &amp;nbsp;Best wishes!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Sep 2021 13:01:19 GMT</pubDate>
    <dc:creator>liiiiiiiib</dc:creator>
    <dc:date>2021-09-29T13:01:19Z</dc:date>
    <item>
      <title>a question about age-adjustment</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/a-question-about-age-adjustment/m-p/771130#M37718</link>
      <description>&lt;LI-SPOILER&gt;&amp;nbsp;&lt;/LI-SPOILER&gt;&lt;P&gt;all, I need your help! I'm a beginner in sas and want to do age-adjustment in my sample data. The population is devided into different agegroups according to age like 18-44, 45-64 and 65+.&amp;nbsp; But I still want to standardize the prevanlence so as to compare different prevanlence in different survey cycles. My codes are as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SURVEYREG data=diffcomcat nomcar;&lt;BR /&gt;STRATA sdmvstra;CLUSTER sdmvpsu;CLASS weightcat agegroup;WEIGHT wtmec12yr;DOMAIN sub;&lt;BR /&gt;MODEL microcat=agegroup agegroup agegroup*agegroup/noint solution vadjust=none;&lt;BR /&gt;ESTIMATE '18-44' agegroup 1 0 0 agegroup 0.5305 0.2992 0.1703 agegroup*agegroup 0.5305 0.2992 0.1703 0 0 0 0 0 0 /cl;&lt;BR /&gt;ESTIMATE "45-64" agegroup 0 1 0 agegroup 0.5305 0.2992 0.1703 agegroup*agegroup 0 0 0 0.5305 0.2992 0.1703 0 0 0 /cl;&lt;BR /&gt;ESTIMATE '65+' agegroup 0 0 1 agegroup 0.5305 0.2992 0.1703 agegroup*agegroup 0 0 0 0 0 0 0.5305 0.2992 0.1703/cl;&lt;BR /&gt;ods OUTPUT estimates=microageadj_prev_age;&lt;BR /&gt;*ods select ParameterEstimates Estimates;&lt;BR /&gt;TITLE 'Age-standardized prevalence of persons 18 years and older with microcat-age';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the logs are as follows:&lt;/P&gt;&lt;P&gt;527 PROC SURVEYREG data=diffcomcat nomcar;&lt;BR /&gt;528 STRATA sdmvstra;CLUSTER sdmvpsu;CLASS weightcat agegroup;WEIGHT wtmec12yr;DOMAIN sub;&lt;BR /&gt;529 MODEL microcat=agegroup agegroup agegroup*agegroup/noint solution vadjust=none;&lt;BR /&gt;530 ESTIMATE '18-44' agegroup 1 0 0 agegroup 0.5305 0.2992 0.1703 agegroup*agegroup 0.5305 0.2992 0.1703 0 0 0 0 0 0 /cl;&lt;BR /&gt;531 ESTIMATE "45-64" agegroup 0 1 0 agegroup 0.5305 0.2992 0.1703 agegroup*agegroup 0 0 0 0.5305 0.2992 0.1703 0 0 0 /cl;&lt;BR /&gt;532 ESTIMATE '65+' agegroup 0 0 1 agegroup 0.5305 0.2992 0.1703 agegroup*agegroup 0 0 0 0 0 0 0.5305 0.2992 0.1703/cl;&lt;BR /&gt;533 ods OUTPUT estimates=microageadj_prev_age;&lt;BR /&gt;534 *ods select ParameterEstimates Estimates;&lt;BR /&gt;535 TITLE 'Age-standardized prevalence of persons 18 years and older with microcat-age';&lt;BR /&gt;536 run;&lt;/P&gt;&lt;P&gt;WARNING: More coefficients than levels specified for effect agegroup. Some coefficients will be ignored.&lt;BR /&gt;NOTE: The structure of the Estimates table has changed from an earlier release of SAS.&lt;BR /&gt;WARNING: More coefficients than levels specified for effect agegroup. Some coefficients will be ignored.&lt;BR /&gt;WARNING: More coefficients than levels specified for effect agegroup. Some coefficients will be ignored.&lt;BR /&gt;WARNING: More coefficients than levels specified for effect agegroup. Some coefficients will be ignored.&lt;BR /&gt;WARNING: More coefficients than levels specified for effect agegroup. Some coefficients will be ignored.&lt;BR /&gt;WARNING: More coefficients than levels specified for effect agegroup. Some coefficients will be ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I know the third line in my code looks stupid and wired but I really don't know how to write this code。 In the output, the estimated values do not appear in the second and third groups. So who can help me ????????&amp;nbsp; &amp;nbsp;Best wishes!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 13:01:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/a-question-about-age-adjustment/m-p/771130#M37718</guid>
      <dc:creator>liiiiiiiib</dc:creator>
      <dc:date>2021-09-29T13:01:19Z</dc:date>
    </item>
  </channel>
</rss>

