<?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 Proc Reg analyses Stratified by categorical variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-analyses-Stratified-by-categorical-variable/m-p/621013#M29927</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to run the proc reg procedure stratified by some categorical variables.&lt;/P&gt;&lt;P&gt;this is what I did without stratification:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc reg data=DATA; Model DEPENDENT=independent_1 ; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I would like to calculate the estimated effect of the variable "independent_1" on DEPENDENT&amp;nbsp; but stratified by Independent_2. "Independent_2" variable has four categories (0, 1, 2, 3). I would like to see for Independent_2=0 then what is the estimated effect of the variable "independent_1" on DEPENDENT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Batts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2020 23:12:50 GMT</pubDate>
    <dc:creator>battsetseg</dc:creator>
    <dc:date>2020-01-29T23:12:50Z</dc:date>
    <item>
      <title>Proc Reg analyses Stratified by categorical variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-analyses-Stratified-by-categorical-variable/m-p/621013#M29927</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to run the proc reg procedure stratified by some categorical variables.&lt;/P&gt;&lt;P&gt;this is what I did without stratification:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc reg data=DATA; Model DEPENDENT=independent_1 ; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I would like to calculate the estimated effect of the variable "independent_1" on DEPENDENT&amp;nbsp; but stratified by Independent_2. "Independent_2" variable has four categories (0, 1, 2, 3). I would like to see for Independent_2=0 then what is the estimated effect of the variable "independent_1" on DEPENDENT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Batts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 23:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-analyses-Stratified-by-categorical-variable/m-p/621013#M29927</guid>
      <dc:creator>battsetseg</dc:creator>
      <dc:date>2020-01-29T23:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg analyses Stratified by categorical variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-analyses-Stratified-by-categorical-variable/m-p/621015#M29928</link>
      <description>&lt;P&gt;You can create regressions by categorical variable with the same slope across each level of the categorical variable, or you can four regressions with different slopes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=data;
    class independent_2;
    model dependent = independent_1 independent_2
        independent_1*independent_2
        /solution;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This gives four different slopes. If you want them to have the same slopes, remove &lt;FONT face="courier new,courier"&gt;independent_1*independent_2&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 23:24:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-analyses-Stratified-by-categorical-variable/m-p/621015#M29928</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-29T23:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg analyses Stratified by categorical variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-analyses-Stratified-by-categorical-variable/m-p/621017#M29929</link>
      <description>PaigeMiller,&lt;BR /&gt;&lt;BR /&gt;Thank you for the suggestion. I run my code but it is not showing any estimate effects. So I would like to see the estimated effect of "Independent_1" on "Dependent" by if each category/level of "independent_2" (this has for levels 0,1,2,3).&lt;BR /&gt;For example: When "independent_2" = 0 what is the estimate effect of "Independent_1" on "Dependent".&lt;BR /&gt;&lt;BR /&gt;When "independent_2" = 1 what is the estimate effect of "Independent_1" on "Dependent".&lt;BR /&gt;&lt;BR /&gt;For example: When "independent_2" = 2 what is the estimate effect of "Independent_1" on "Dependent".&lt;BR /&gt;&lt;BR /&gt;For example: When "independent_2" = 3 what is the estimate effect of "Independent_1" on "Dependent".&lt;BR /&gt;&lt;BR /&gt;I would like to see the estimate effect, CI, P-value, and Number of observations used in each of these results.&lt;BR /&gt;&lt;BR /&gt;thank you very much!</description>
      <pubDate>Wed, 29 Jan 2020 23:45:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-analyses-Stratified-by-categorical-variable/m-p/621017#M29929</guid>
      <dc:creator>battsetseg</dc:creator>
      <dc:date>2020-01-29T23:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg analyses Stratified by categorical variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-analyses-Stratified-by-categorical-variable/m-p/621113#M29930</link>
      <description>&lt;P&gt;Did you use the /SOLUTION option? If so, the estimates should be shown in the output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please show us the code you used. (Click on the running man icon and paste the code into that window)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please show us the output you obtained.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 12:04:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-analyses-Stratified-by-categorical-variable/m-p/621113#M29930</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-30T12:04:12Z</dc:date>
    </item>
  </channel>
</rss>

