<?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 include fixed effects with PROC SURVEYREG? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-fixed-effects-with-PROC-SURVEYREG/m-p/301434#M16031</link>
    <description>&lt;P&gt;Look at the Data Summary Table. Most likely, including the CLASS statement decreases the Number of Observations count. Missing class levels are excluded from analysis, even if they are not part of the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data classMissing12;
set sashelp.class;
if age=12 then call missing(age);
run;

proc surveyreg data=classMissing12;
class age;
model weight = height / solution;
run;

proc surveyreg data=classMissing12;
*class age;
model weight = height / solution;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 29 Sep 2016 02:17:20 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-09-29T02:17:20Z</dc:date>
    <item>
      <title>How to include fixed effects with PROC SURVEYREG?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-fixed-effects-with-PROC-SURVEYREG/m-p/301400#M16029</link>
      <description>&lt;P&gt;I know PROC SURVEYREG can incorporate clustering and fixed effects. However, I'm a bit confused as to how to include fixed effects. My understanding is, the CLASS command creates dummy variables for the categorization variable / fixed effect variable. But do I then include that variable in the model command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, let's say var2 is my fixed effect. Do I...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyreg data=data;
class var2;
model y = var1 / solution;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or do I...&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyreg data=data;
class var2;
model y = var1 var2 / solution;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I think it is the second one, but running the first one does not provide the same coefficient estimates as if I run it without the CLASS command, so the CLASS command must be doing something other than just creating dummy variables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 20:39:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-fixed-effects-with-PROC-SURVEYREG/m-p/301400#M16029</guid>
      <dc:creator>BobSmith</dc:creator>
      <dc:date>2016-09-28T20:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to include fixed effects with PROC SURVEYREG?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-fixed-effects-with-PROC-SURVEYREG/m-p/301434#M16031</link>
      <description>&lt;P&gt;Look at the Data Summary Table. Most likely, including the CLASS statement decreases the Number of Observations count. Missing class levels are excluded from analysis, even if they are not part of the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data classMissing12;
set sashelp.class;
if age=12 then call missing(age);
run;

proc surveyreg data=classMissing12;
class age;
model weight = height / solution;
run;

proc surveyreg data=classMissing12;
*class age;
model weight = height / solution;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Sep 2016 02:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-fixed-effects-with-PROC-SURVEYREG/m-p/301434#M16031</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-09-29T02:17:20Z</dc:date>
    </item>
  </channel>
</rss>

