<?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 Regression Model Using Dummy Variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Regression-Model-Using-Dummy-Variable/m-p/342830#M18034</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a SAS toddler and running a regression model using dummy variable for an event study. My model is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Realized Return = Expected Return + Dummy for event day (Day -10 to Day +10)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc reg data=work.germanyindex;&lt;BR /&gt;model RR = ER DB10 DB09 DB08 DB07 DB06 DB05 DB04 DB03 DB02 DB01 DDAY DA01 DA02 DA03 DA04 DA05 DA06 DA07 DA08 DA09 DA10;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the model, RR means realized return, and ER is expected return, and DB10 to DA10 is date dummy consist of 0 or 1. I have around 270 observations in my dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I run this regression, SAS says:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV align="left"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Note:&lt;/TD&gt;&lt;TD&gt;Model is not full rank. Least-squares solutions for the parameters are not unique. Some statistics will be misleading. A reported DF of 0 or B means that the estimate is biased.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV align="left"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Note:&lt;/TD&gt;&lt;TD&gt;The following parameters have been set to 0, since the variables are a linear combination of other variables as shown.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I cannot get coefficient of ER variable nor std. error, t-stats, and prob.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not know what can I do for this. Is it a data problem? or coding?&amp;nbsp;I attached my dataset just in case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will appreciate your help.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2017 03:28:58 GMT</pubDate>
    <dc:creator>quebecsalmon</dc:creator>
    <dc:date>2017-03-21T03:28:58Z</dc:date>
    <item>
      <title>Regression Model Using Dummy Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression-Model-Using-Dummy-Variable/m-p/342830#M18034</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a SAS toddler and running a regression model using dummy variable for an event study. My model is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Realized Return = Expected Return + Dummy for event day (Day -10 to Day +10)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc reg data=work.germanyindex;&lt;BR /&gt;model RR = ER DB10 DB09 DB08 DB07 DB06 DB05 DB04 DB03 DB02 DB01 DDAY DA01 DA02 DA03 DA04 DA05 DA06 DA07 DA08 DA09 DA10;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the model, RR means realized return, and ER is expected return, and DB10 to DA10 is date dummy consist of 0 or 1. I have around 270 observations in my dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I run this regression, SAS says:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV align="left"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Note:&lt;/TD&gt;&lt;TD&gt;Model is not full rank. Least-squares solutions for the parameters are not unique. Some statistics will be misleading. A reported DF of 0 or B means that the estimate is biased.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV align="left"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Note:&lt;/TD&gt;&lt;TD&gt;The following parameters have been set to 0, since the variables are a linear combination of other variables as shown.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I cannot get coefficient of ER variable nor std. error, t-stats, and prob.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not know what can I do for this. Is it a data problem? or coding?&amp;nbsp;I attached my dataset just in case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will appreciate your help.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 03:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression-Model-Using-Dummy-Variable/m-p/342830#M18034</guid>
      <dc:creator>quebecsalmon</dc:creator>
      <dc:date>2017-03-21T03:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regression Model Using Dummy Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression-Model-Using-Dummy-Variable/m-p/342832#M18035</link>
      <description>&lt;P&gt;Remember when coding dummy variables you include N-1 variables for N levels.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is because if you have 3 levels you only need two variables to uniquely identify all 3 scenarios.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 03:41:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression-Model-Using-Dummy-Variable/m-p/342832#M18035</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-21T03:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Regression Model Using Dummy Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression-Model-Using-Dummy-Variable/m-p/342836#M18036</link>
      <description>&lt;P&gt;You mean number of dummy variables by levels? I have dummy variables for each 21 days, so I need to remove one of dummy variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or, values of variable? DB10 - DA10 is consist of 1 and 0, but do I need to make blank for 0s?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for asking you additional question.&lt;/P&gt;&lt;P&gt;I am real beginner of SAS, so these question could be stupid. please understand.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 03:52:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression-Model-Using-Dummy-Variable/m-p/342836#M18036</guid>
      <dc:creator>quebecsalmon</dc:creator>
      <dc:date>2017-03-21T03:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regression Model Using Dummy Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression-Model-Using-Dummy-Variable/m-p/342838#M18037</link>
      <description>&lt;P&gt;This isn't a SAS question, it's a statistics question. SAS is simply a program for applying statistical knowledge, you still need to understand the statistical methodology.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a variable that can be expressed as a linear combination of other variables, it is not independent. So if you have 0/1 for every day, then you&amp;nbsp;have overspecified the model and need to remove one of the day variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A more detailed write up:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://stats.idre.ucla.edu/other/mult-pkg/faq/general/faqwhat-is-dummy-coding/" target="_blank"&gt;http://stats.idre.ucla.edu/other/mult-pkg/faq/general/faqwhat-is-dummy-coding/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 03:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression-Model-Using-Dummy-Variable/m-p/342838#M18037</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-21T03:58:39Z</dc:date>
    </item>
  </channel>
</rss>

