<?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 dummy code different independent groups in a proc surveyreg. in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-dummy-code-different-independent-groups-in-a-proc/m-p/299622#M15937</link>
    <description>&lt;P&gt;The ESTIMATE statement will enable you to get the difference between levels, given the other covariates. &amp;nbsp;Much easier would be to use an LSMEANS statement, such as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LSMEANS groups/diff=control('4');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2016 17:55:04 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2016-09-20T17:55:04Z</dc:date>
    <item>
      <title>How to dummy code different independent groups in a proc surveyreg.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-dummy-code-different-independent-groups-in-a-proc/m-p/299451#M15929</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 4 independent groups of individuals that I would like to compare in terms of their mental health outcomes (a continuous depression score). I am running a linear reg, with proc surveryreg. I am controlling for a slew of covariates, and adding in a weight statement, since this is survey data. My question has to do with the dummy coding. Is it enough to just reference code using the class statement, or do I need to also include an estimate statement? I will be comparing each of my groups to group 4. What I'm essentially interested in, is getting the parameter estimates and SE for each group against the reference group.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveyreg;&amp;nbsp;&lt;/P&gt;&lt;P&gt;weight;&lt;/P&gt;&lt;P&gt;class groups(ref='4');&lt;/P&gt;&lt;P&gt;model mentalhealth=Groups&amp;nbsp;/solution;&lt;/P&gt;&lt;P&gt;estimate 'group 1 vs 4' groups 1 0 0 -1;&lt;/P&gt;&lt;P&gt;estimate 'groups 2 vs 4' groups 0 1 0 -1;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 15:21:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-dummy-code-different-independent-groups-in-a-proc/m-p/299451#M15929</guid>
      <dc:creator>hellohello1</dc:creator>
      <dc:date>2016-09-20T15:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to dummy code different independent groups in a proc surveyreg.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-dummy-code-different-independent-groups-in-a-proc/m-p/299572#M15932</link>
      <description>&lt;P&gt;In my opinion, I think you will find the results of the estimate statements to be more meaningful than just looking at the solution vector.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, you have a problem, in that the variable 'groups' doesn't appear in your MODEL statement. &amp;nbsp;In the current MODEL statement, the only effect variable is 'cluster', which I don't think refers to group. &amp;nbsp;You will need to correct one or the other to get any results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 15:01:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-dummy-code-different-independent-groups-in-a-proc/m-p/299572#M15932</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-09-20T15:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to dummy code different independent groups in a proc surveyreg.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-dummy-code-different-independent-groups-in-a-proc/m-p/299578#M15933</link>
      <description>&lt;P&gt;Oops, that was just a typo.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What information does the estimate statement give you, versus the solution vector?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 15:21:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-dummy-code-different-independent-groups-in-a-proc/m-p/299578#M15933</guid>
      <dc:creator>hellohello1</dc:creator>
      <dc:date>2016-09-20T15:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to dummy code different independent groups in a proc surveyreg.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-dummy-code-different-independent-groups-in-a-proc/m-p/299622#M15937</link>
      <description>&lt;P&gt;The ESTIMATE statement will enable you to get the difference between levels, given the other covariates. &amp;nbsp;Much easier would be to use an LSMEANS statement, such as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LSMEANS groups/diff=control('4');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 17:55:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-dummy-code-different-independent-groups-in-a-proc/m-p/299622#M15937</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-09-20T17:55:04Z</dc:date>
    </item>
  </channel>
</rss>

