<?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 Dummy Variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Dummy-Variable/m-p/557720#M27657</link>
    <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every time I run Rogers standard errors model, I get .... for the dummy variable yr12, although my sample has data on yr12. Your assistance is highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA Aac; * Full sample;&lt;BR /&gt;set Aac;&lt;BR /&gt;proc surveyreg data=Aac;&lt;BR /&gt;cluster year;&lt;/P&gt;&lt;P&gt;model Aac_int = EB_Aac1 NewReg LagEarnings2 LagAac_int&lt;BR /&gt;yr00 yr01 yr02 yr03 yr04 yr05 yr06 yr07 yr08 yr09&lt;BR /&gt;yr10 yr11 yr12 yr13 yr14 yr15 yr16 yr17 /ADJRSQ ; run;&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2019 10:19:10 GMT</pubDate>
    <dc:creator>Almutairi</dc:creator>
    <dc:date>2019-05-10T10:19:10Z</dc:date>
    <item>
      <title>Dummy Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dummy-Variable/m-p/557720#M27657</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every time I run Rogers standard errors model, I get .... for the dummy variable yr12, although my sample has data on yr12. Your assistance is highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA Aac; * Full sample;&lt;BR /&gt;set Aac;&lt;BR /&gt;proc surveyreg data=Aac;&lt;BR /&gt;cluster year;&lt;/P&gt;&lt;P&gt;model Aac_int = EB_Aac1 NewReg LagEarnings2 LagAac_int&lt;BR /&gt;yr00 yr01 yr02 yr03 yr04 yr05 yr06 yr07 yr08 yr09&lt;BR /&gt;yr10 yr11 yr12 yr13 yr14 yr15 yr16 yr17 /ADJRSQ ; run;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 10:19:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dummy-Variable/m-p/557720#M27657</guid>
      <dc:creator>Almutairi</dc:creator>
      <dc:date>2019-05-10T10:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dummy Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dummy-Variable/m-p/557728#M27658</link>
      <description>&lt;P&gt;Show us the output you are getting. Copy the text and then paste it into the window that appears when you click on the {i} icon.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 10:52:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dummy-Variable/m-p/557728#M27658</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-05-10T10:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dummy Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dummy-Variable/m-p/557737#M27659</link>
      <description>&lt;PRE&gt;27   proc surveyreg data=Aac;
28               cluster year;
29
30       model Aac_int = EB_Aac1 NewReg LagEarnings2 LagAac_int
31                       yr00 yr01 yr02 yr03 yr04 yr05 yr06 yr07 yr08 yr09
32                       yr10 yr11 yr12 yr13 yr14 yr15 yr16 yr17 /ADJRSQ ; run;

NOTE: PROCEDURE SURVEYREG used (Total process time):
      real time           0.04 seconds
      cpu time            0.03 seconds

The SAS System 


The SURVEYREG Procedure
 
Regression Analysis for Dependent Variable AAC_int

Data Summary 
Number of Observations 840 
Mean of AAC_int 0.0034912 
Sum of AAC_int 2.93261 



Design Summary 
Number of Clusters 19 



Fit Statistics 
R-Square 0.7176 
Adjusted R-Square 0.7104 
Root MSE 0.05224 
Denominator DF 18 



Tests of Model Effects 
Effect Num DF F Value Pr &amp;gt; F 
Model 3 415.40 &amp;lt;.0001 
Intercept 0 . . 
EB_Aac1 1 1100.31 &amp;lt;.0001 
NewReg 0 . . 
LagEarnings2 1 360.67 &amp;lt;.0001 
LagAac_int 1 0.06 0.8089 
yr00 0 . . 
yr01 0 . . 
yr02 0 . . 
yr03 0 . . 
yr04 0 . . 
yr05 0 . . 
yr06 0 . . 
yr07 0 . . 
yr08 0 . . 
yr09 0 . . 
yr10 0 . . 
yr11 0 . . 
yr12 0 . . 
yr13 1 211.22 &amp;lt;.0001 
yr14 1 20.55 0.0003 
yr15 1 10.97 0.0039 
yr16 1 4.24 0.0543 
yr17 1 83.39 &amp;lt;.0001 




Note: The denominator degrees of freedom for the F tests is 18. 




Estimated Regression Coefficients 
Parameter Estimate Standard
Error t Value Pr &amp;gt; |t| 
Intercept 0.0470502 0.00306833 15.33 &amp;lt;.0001 
EB_Aac1 -0.7818615 0.02357066 -33.17 &amp;lt;.0001 
NewReg -0.0235215 0.00068571 -34.30 &amp;lt;.0001 
LagEarnings2 0.5692596 0.02997476 18.99 &amp;lt;.0001 
LagAac_int -0.0048703 0.01984826 -0.25 0.8089 
yr00 -0.0041067 0.00192654 -2.13 0.0471 
yr01 -0.0288705 0.00080455 -35.88 &amp;lt;.0001 
yr02 -0.0223174 0.00034868 -64.01 &amp;lt;.0001 
yr03 -0.0165263 0.00037033 -44.63 &amp;lt;.0001 
yr04 -0.0008246 0.00078551 -1.05 0.3077 
yr05 -0.0063398 0.00140053 -4.53 0.0003 
yr06 -0.0198335 0.00166022 -11.95 &amp;lt;.0001 
yr07 -0.0344668 0.00153419 -22.47 &amp;lt;.0001 
yr08 -0.0317944 0.00107077 -29.69 &amp;lt;.0001 
yr09 -0.0450443 0.00144926 -31.08 &amp;lt;.0001 
yr10 -0.0199334 0.00108137 -18.43 &amp;lt;.0001 
yr11 -0.0079761 0.00061658 -12.94 &amp;lt;.0001 
yr12 0.0000000 0.00000000 . . 
yr13 -0.0069506 0.00047824 -14.53 &amp;lt;.0001 
yr14 -0.0021293 0.00046976 -4.53 0.0003 
yr15 -0.0015849 0.00047855 -3.31 0.0039 
yr16 0.0006426 0.00031218 2.06 0.0543 
yr17 -0.0024150 0.00026446 -9.13 &amp;lt;.0001 




Note: The degrees of freedom for the t tests is 18.
Matrix X'X is singular and a generalized inverse was used to solve the normal equations. Estimates are not unique. 


&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 May 2019 11:40:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dummy-Variable/m-p/557737#M27659</guid>
      <dc:creator>Almutairi</dc:creator>
      <dc:date>2019-05-10T11:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dummy Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dummy-Variable/m-p/557738#M27660</link>
      <description>&lt;P&gt;I also attached the file in my previous message if you like to run the model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 11:42:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dummy-Variable/m-p/557738#M27660</guid>
      <dc:creator>Almutairi</dc:creator>
      <dc:date>2019-05-10T11:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dummy Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dummy-Variable/m-p/557739#M27661</link>
      <description>&lt;P&gt;The model works fine as I drop yr12.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 11:43:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dummy-Variable/m-p/557739#M27661</guid>
      <dc:creator>Almutairi</dc:creator>
      <dc:date>2019-05-10T11:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dummy Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dummy-Variable/m-p/557743#M27662</link>
      <description>&lt;P&gt;In PROC SURVEYREG, there's no need to create your own dummy variables, the CLASS statement will do that for you behind the scenes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your case, the regression coefficient of yr12 cannot be estimated because it is not independent of the other variables yr00-yr17. This is not an error, this is the way SAS (and probably most other statistical programs) handle the situation. Consider the simple case where you have dummy variables for male and female. If you know the dummy variable (0 or 1) for male, then you also know the dummy variable 0 or 1 for female, these are completely dependent on one another and so a dummy variable for female adds no new information. The same is true for yr12 ... if you know yr00-yr11 and yr13-yr17, then you know exactly yr12, it adds no new information.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Rather than look at the regression coefficients for your dummy variables, you want to look at the least squares means for your dummy variables using the LSMEANS statement. This will overcome the problems mentioned above.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 12:19:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dummy-Variable/m-p/557743#M27662</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-05-10T12:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dummy Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dummy-Variable/m-p/557746#M27663</link>
      <description>&lt;P&gt;Thank you so much.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 12:31:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dummy-Variable/m-p/557746#M27663</guid>
      <dc:creator>Almutairi</dc:creator>
      <dc:date>2019-05-10T12:31:01Z</dc:date>
    </item>
  </channel>
</rss>

