<?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 I want to do a subgroup analysis in PROC SURVEYMEANS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-do-a-subgroup-analysis-in-PROC-SURVEYMEANS/m-p/803450#M316359</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using proc surveymeans to estimate mean of incomes of people with different disabilities. I need to subgroup them by several demographic indicators like gender (2 categories), age groups (3 categories), education (3 categories), and estimate incomes by different combinations of subgroups. for example:&lt;/P&gt;&lt;P&gt;I want to estimate the income for different categories of disability groups when gender=1 (male), age_group=2 (35-45), and education= 1 (bachelor+). I don't know how to do it using the syntax below.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveymeans data=mydata&amp;nbsp; &amp;nbsp;varmethod=BRR mean clm median;&lt;/P&gt;&lt;P&gt;domain disability;&lt;/P&gt;&lt;P&gt;weight myweight;&lt;/P&gt;&lt;P&gt;repweights bsw1-bsw500;&lt;/P&gt;&lt;P&gt;var income;&lt;/P&gt;&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Altadata&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2022 20:10:21 GMT</pubDate>
    <dc:creator>altadata1</dc:creator>
    <dc:date>2022-03-22T20:10:21Z</dc:date>
    <item>
      <title>I want to do a subgroup analysis in PROC SURVEYMEANS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-do-a-subgroup-analysis-in-PROC-SURVEYMEANS/m-p/803450#M316359</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using proc surveymeans to estimate mean of incomes of people with different disabilities. I need to subgroup them by several demographic indicators like gender (2 categories), age groups (3 categories), education (3 categories), and estimate incomes by different combinations of subgroups. for example:&lt;/P&gt;&lt;P&gt;I want to estimate the income for different categories of disability groups when gender=1 (male), age_group=2 (35-45), and education= 1 (bachelor+). I don't know how to do it using the syntax below.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveymeans data=mydata&amp;nbsp; &amp;nbsp;varmethod=BRR mean clm median;&lt;/P&gt;&lt;P&gt;domain disability;&lt;/P&gt;&lt;P&gt;weight myweight;&lt;/P&gt;&lt;P&gt;repweights bsw1-bsw500;&lt;/P&gt;&lt;P&gt;var income;&lt;/P&gt;&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Altadata&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 20:10:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-want-to-do-a-subgroup-analysis-in-PROC-SURVEYMEANS/m-p/803450#M316359</guid>
      <dc:creator>altadata1</dc:creator>
      <dc:date>2022-03-22T20:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: I want to do a subgroup analysis in PROC SURVEYMEANS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-do-a-subgroup-analysis-in-PROC-SURVEYMEANS/m-p/803471#M316366</link>
      <description>&lt;P&gt;What do you think that DOMAIN statement does in your code? Domains are "subgroups" for analysis. You can place multiple variables on the domain and get analysis for each. Or if you need nested combinations of categories use the * between variable names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Domain disability*gender; will do the genders within each disability level.&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;Domain disability*gender*age_group; age within gender within disability&lt;/P&gt;
&lt;P&gt;You can use () to group variables:&lt;/P&gt;
&lt;P&gt;Domain disability*(gender age_group); gender within disability and age_group within disability.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may find it convenient to send the output to a data set to select subsets of the results for reporting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use results you want&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 23:12:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-want-to-do-a-subgroup-analysis-in-PROC-SURVEYMEANS/m-p/803471#M316366</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-22T23:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: I want to do a subgroup analysis in PROC SURVEYMEANS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-do-a-subgroup-analysis-in-PROC-SURVEYMEANS/m-p/803488#M316374</link>
      <description>&lt;P&gt;Thank you so much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 01:27:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-want-to-do-a-subgroup-analysis-in-PROC-SURVEYMEANS/m-p/803488#M316374</guid>
      <dc:creator>altadata1</dc:creator>
      <dc:date>2022-03-23T01:27:02Z</dc:date>
    </item>
  </channel>
</rss>

