<?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 Create dummy variable for group in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Create-dummy-variable-for-group/m-p/228494#M12063</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking at the interaction between age (dichotomized as above OR below 65 years) and sex (men versus women) on the functional outcomes of therapy. In my model, I would like to insert 3 independent variables: age sex agexsex&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While creating the interaction variable, I just created a column of data representing agexsex. Following this, I conducted regression analysis using SAS code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc reg data = Knee_gender_interaction2;&lt;BR /&gt; model IADL_6months&amp;nbsp;= age sex agexsex/&lt;SPAN&gt;stb clb;&lt;/SPAN&gt;&lt;BR /&gt; model functions_6months&amp;nbsp;= &lt;SPAN&gt;age sex agexsex&lt;/SPAN&gt;/stb clb;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem I run into is that SAS is not allowing me to get the beta estimate for the interaction term agexsex, by suggesting that the age-sex is the linear product of age and sex which are also present in the model.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I read somewhere that I should create a summy variables to test the effect of all 3 independent variables: age, sex, and agexsex.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can somebody suggest teh SAS coding for creating the dummay variable and subsequent regression model?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Saurabh&lt;/P&gt;</description>
    <pubDate>Mon, 05 Oct 2015 18:58:59 GMT</pubDate>
    <dc:creator>Pt_Prof</dc:creator>
    <dc:date>2015-10-05T18:58:59Z</dc:date>
    <item>
      <title>Create dummy variable for group</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Create-dummy-variable-for-group/m-p/228494#M12063</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking at the interaction between age (dichotomized as above OR below 65 years) and sex (men versus women) on the functional outcomes of therapy. In my model, I would like to insert 3 independent variables: age sex agexsex&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While creating the interaction variable, I just created a column of data representing agexsex. Following this, I conducted regression analysis using SAS code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc reg data = Knee_gender_interaction2;&lt;BR /&gt; model IADL_6months&amp;nbsp;= age sex agexsex/&lt;SPAN&gt;stb clb;&lt;/SPAN&gt;&lt;BR /&gt; model functions_6months&amp;nbsp;= &lt;SPAN&gt;age sex agexsex&lt;/SPAN&gt;/stb clb;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem I run into is that SAS is not allowing me to get the beta estimate for the interaction term agexsex, by suggesting that the age-sex is the linear product of age and sex which are also present in the model.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I read somewhere that I should create a summy variables to test the effect of all 3 independent variables: age, sex, and agexsex.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can somebody suggest teh SAS coding for creating the dummay variable and subsequent regression model?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Saurabh&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 18:58:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Create-dummy-variable-for-group/m-p/228494#M12063</guid>
      <dc:creator>Pt_Prof</dc:creator>
      <dc:date>2015-10-05T18:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable for group</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Create-dummy-variable-for-group/m-p/228499#M12064</link>
      <description>Have you tried proc GLM with CLASS variables?</description>
      <pubDate>Mon, 05 Oct 2015 19:19:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Create-dummy-variable-for-group/m-p/228499#M12064</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-10-05T19:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable for group</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Create-dummy-variable-for-group/m-p/228511#M12065</link>
      <description>&lt;P&gt;Did you create your sex indicator as a {0 ,1 } indicator? If not, do so-- and use this new sex indicator to also create your interaction product. Then retry in proc reg.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 19:54:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Create-dummy-variable-for-group/m-p/228511#M12065</guid>
      <dc:creator>thwasser</dc:creator>
      <dc:date>2015-10-05T19:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create dummy variable for group</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Create-dummy-variable-for-group/m-p/228512#M12066</link>
      <description>&lt;P&gt;See the answer to a similar type of question posted here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/How-to-test-whether-the-differences-between-two-regression/m-p/227927#U227927" target="_blank"&gt;https://communities.sas.com/t5/SAS-Statistical-Procedures/How-to-test-whether-the-differences-between-two-regression/m-p/227927#U227927&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 19:55:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Create-dummy-variable-for-group/m-p/228512#M12066</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2015-10-05T19:55:02Z</dc:date>
    </item>
  </channel>
</rss>

