<?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 Stratify sample in PROC GLM in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Stratify-sample-in-PROC-GLM/m-p/819306#M517</link>
    <description>&lt;P class=""&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Hello, how do I simply stratify analysis by gender? My outcome variable is continuous and I have a mix of continuous and categorical predictors. I used proc glm for the whole group analysis. I thought to create a new data set for each gender and then run the analyses but I was wondering if SAS has a simpler way to accomplish this. Thanks for any help!&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc glm data= dummy;
model loglac= mddtotal age sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2022 12:39:24 GMT</pubDate>
    <dc:creator>iressa1313</dc:creator>
    <dc:date>2022-06-21T12:39:24Z</dc:date>
    <item>
      <title>Stratify sample in PROC GLM</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Stratify-sample-in-PROC-GLM/m-p/819306#M517</link>
      <description>&lt;P class=""&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Hello, how do I simply stratify analysis by gender? My outcome variable is continuous and I have a mix of continuous and categorical predictors. I used proc glm for the whole group analysis. I thought to create a new data set for each gender and then run the analyses but I was wondering if SAS has a simpler way to accomplish this. Thanks for any help!&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc glm data= dummy;
model loglac= mddtotal age sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 12:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Stratify-sample-in-PROC-GLM/m-p/819306#M517</guid>
      <dc:creator>iressa1313</dc:creator>
      <dc:date>2022-06-21T12:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Stratify sample in PROC GLM</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Stratify-sample-in-PROC-GLM/m-p/819314#M520</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data= dummy;
class sex;
model loglac= mddtotal age sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'm not 100% sure I know what you mean by "stratify" in the context of GLM modeling, but you can add SEX into the CLASS statement; you can also include interactions of SEX with AGE and MDDTOTAL, this effectively computes different intercepts and different slopes for AGE and MDDTOTAL depending on the value of SEX.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 13:08:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Stratify-sample-in-PROC-GLM/m-p/819314#M520</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-06-21T13:08:54Z</dc:date>
    </item>
  </channel>
</rss>

