<?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 let SAS know that I am controlling for a variable when using MLR? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-let-SAS-know-that-I-am-controlling-for-a-variable-when/m-p/591623#M28931</link>
    <description>&lt;P&gt;Seems good to me. Maybe someone else (&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;) might want to look it over, if they have the time and interest.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2019 17:35:09 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-09-25T17:35:09Z</dc:date>
    <item>
      <title>How to let SAS know that I am controlling for a variable when using MLR?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-let-SAS-know-that-I-am-controlling-for-a-variable-when/m-p/591569#M28926</link>
      <description>&lt;P&gt;I have a dataset that contains several variables from which, I'd like to know if the mean AGE in the "population" vary by GENDER, while controlling for RACE?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case Y = AGE (continuous variable)&lt;/P&gt;&lt;P&gt;X1 = GENDER and X2 = RACE (both X1 and X2 are categorical variables)&lt;/P&gt;&lt;P&gt;Since the question asks about "population" and not sample, I chose to use weight variables. However, I am not sure how to let SAS know that I am controlling for a variable "RACE"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I am using as of now...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveyreg data = myfile;&lt;/P&gt;&lt;P&gt;&amp;nbsp;class GENDER RACE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;weight weightvariable;&lt;/P&gt;&lt;P&gt;&amp;nbsp;strata stratavariable;&lt;/P&gt;&lt;P&gt;&amp;nbsp;cluster clustervariable;&lt;/P&gt;&lt;P&gt;&amp;nbsp;model AGE = GENDER RACE / solution;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 15:09:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-let-SAS-know-that-I-am-controlling-for-a-variable-when/m-p/591569#M28926</guid>
      <dc:creator>coolmac</dc:creator>
      <dc:date>2019-09-25T15:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to let SAS know that I am controlling for a variable when using MLR?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-let-SAS-know-that-I-am-controlling-for-a-variable-when/m-p/591578#M28927</link>
      <description>&lt;P&gt;I think this is right, you might want to add the LSMEANS command to get the estimated means by gender, adjusting for race.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 15:21:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-let-SAS-know-that-I-am-controlling-for-a-variable-when/m-p/591578#M28927</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-25T15:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to let SAS know that I am controlling for a variable when using MLR?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-let-SAS-know-that-I-am-controlling-for-a-variable-when/m-p/591584#M28928</link>
      <description>&lt;P&gt;Hi Paige,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the response. Could you provide the code for adding LSMEANS in this case?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 15:31:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-let-SAS-know-that-I-am-controlling-for-a-variable-when/m-p/591584#M28928</guid>
      <dc:creator>coolmac</dc:creator>
      <dc:date>2019-09-25T15:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to let SAS know that I am controlling for a variable when using MLR?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-let-SAS-know-that-I-am-controlling-for-a-variable-when/m-p/591614#M28929</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmeans gender race;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Sep 2019 17:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-let-SAS-know-that-I-am-controlling-for-a-variable-when/m-p/591614#M28929</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-25T17:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to let SAS know that I am controlling for a variable when using MLR?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-let-SAS-know-that-I-am-controlling-for-a-variable-when/m-p/591621#M28930</link>
      <description>&lt;P&gt;Thank you. So, will this be my complete code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveyreg data = myfile;&lt;/P&gt;&lt;P&gt;&amp;nbsp;class GENDER RACE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;weight weightvariable;&lt;/P&gt;&lt;P&gt;&amp;nbsp;strata stratavariable;&lt;/P&gt;&lt;P&gt;&amp;nbsp;cluster clustervariable;&lt;/P&gt;&lt;P&gt;&amp;nbsp;model AGE = GENDER RACE / solution;&lt;/P&gt;&lt;P&gt;&amp;nbsp;lsmeans&amp;nbsp;GENDER RACE;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 17:25:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-let-SAS-know-that-I-am-controlling-for-a-variable-when/m-p/591621#M28930</guid>
      <dc:creator>coolmac</dc:creator>
      <dc:date>2019-09-25T17:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to let SAS know that I am controlling for a variable when using MLR?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-let-SAS-know-that-I-am-controlling-for-a-variable-when/m-p/591623#M28931</link>
      <description>&lt;P&gt;Seems good to me. Maybe someone else (&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;) might want to look it over, if they have the time and interest.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 17:35:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-let-SAS-know-that-I-am-controlling-for-a-variable-when/m-p/591623#M28931</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-25T17:35:09Z</dc:date>
    </item>
  </channel>
</rss>

