<?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 Re: How to stratify based on sexual orientation by gender &amp;amp; race/ethnicity? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-stratify-based-on-sexual-orientation-by-gender-amp-race/m-p/860524#M339945</link>
    <description>&lt;P&gt;Try PROC TABULATE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=k.combined_dataset;
class so raceethnicity genderid;
table so, raceethnicity*genderid*(N COLPCTN);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 23 Feb 2023 18:45:12 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2023-02-23T18:45:12Z</dc:date>
    <item>
      <title>How to stratify based on sexual orientation by gender &amp; race/ethnicity?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stratify-based-on-sexual-orientation-by-gender-amp-race/m-p/860517#M339941</link>
      <description>&lt;P&gt;Hello everyone. I have a dataset called 'k.combined_dataset. I want to stratify sexual orientation (variable name 'so') by race/ethnicity and gender. See below of the desire product:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aigiss_3-1677176505352.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80779iAA67B6B941F5734B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aigiss_3-1677176505352.png" alt="aigiss_3-1677176505352.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I was only able to create this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aigiss_0-1677176176431.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80776iC2CB23BAEB50FD1B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aigiss_0-1677176176431.png" alt="aigiss_0-1677176176431.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aigiss_2-1677176319559.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80778iE2B690DFDB0C8564/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aigiss_2-1677176319559.png" alt="aigiss_2-1677176319559.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by using this code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;/*Distribution of race by SO*/ 
proc sort data=k.combined_dataset;
   by genderid so raceethnicity;
run;

title1 'Strata of Sexual Orientation by Gender &amp;amp; Race/ethnicity';
proc freq data=k.combined_dataset;
   tables so*(raceethnicity genderid)/norow;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 18:22:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stratify-based-on-sexual-orientation-by-gender-amp-race/m-p/860517#M339941</guid>
      <dc:creator>aigiss</dc:creator>
      <dc:date>2023-02-23T18:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to stratify based on sexual orientation by gender &amp; race/ethnicity?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stratify-based-on-sexual-orientation-by-gender-amp-race/m-p/860524#M339945</link>
      <description>&lt;P&gt;Try PROC TABULATE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=k.combined_dataset;
class so raceethnicity genderid;
table so, raceethnicity*genderid*(N COLPCTN);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Feb 2023 18:45:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stratify-based-on-sexual-orientation-by-gender-amp-race/m-p/860524#M339945</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-02-23T18:45:12Z</dc:date>
    </item>
  </channel>
</rss>

