<?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 should I do the regression with partially missing data? in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-should-I-do-the-regression-with-partially-missing-data/m-p/130703#M734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Can you impute your missing data? SAS has procedures for that.&lt;/P&gt;&lt;P&gt;2. Is your data missing at random or systematic and continuous or categorical? If categorical, can you include "Missing" as a category?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Sep 2013 21:06:10 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2013-09-05T21:06:10Z</dc:date>
    <item>
      <title>How should I do the regression with partially missing data?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-should-I-do-the-regression-with-partially-missing-data/m-p/130702#M733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose I have three variables: Y, X1 and X2, while both Y and X1 have 100 observations, but X2 only has, say, 30 observations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to estimate an equatino as Y=X1*b1+X2*b2, while utilizing all the information I have, i.e., I do not want to discard the 70 observations with missing X2s. How am I supposed to write the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I write it in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;prco model data=yx1x2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameters b1 b2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if x2=. then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; eq1=y-x1*b1;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; eq1=y-x1*b1-x2*b2;&lt;/P&gt;&lt;P&gt; fit eq1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Behind the scene, how does SAS process this equation, I mean, what is the algorithm ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 21:02:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-should-I-do-the-regression-with-partially-missing-data/m-p/130702#M733</guid>
      <dc:creator>bigbigben</dc:creator>
      <dc:date>2013-09-05T21:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: How should I do the regression with partially missing data?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-should-I-do-the-regression-with-partially-missing-data/m-p/130703#M734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Can you impute your missing data? SAS has procedures for that.&lt;/P&gt;&lt;P&gt;2. Is your data missing at random or systematic and continuous or categorical? If categorical, can you include "Missing" as a category?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 21:06:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-should-I-do-the-regression-with-partially-missing-data/m-p/130703#M734</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-09-05T21:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: How should I do the regression with partially missing data?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-should-I-do-the-regression-with-partially-missing-data/m-p/130704#M735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My constraint is that I cannot impute the missing values. Let's suppose the missing is random and the variable is numeric. I actually can get the code run, if I have the specification I mentioned in the inital post, but I am not sure whether the results are reliable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 15:02:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-should-I-do-the-regression-with-partially-missing-data/m-p/130704#M735</guid>
      <dc:creator>bigbigben</dc:creator>
      <dc:date>2013-09-06T15:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: How should I do the regression with partially missing data?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-should-I-do-the-regression-with-partially-missing-data/m-p/130705#M736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;Using the above code PROC MODEL will effectively estimate a two variable linear model with no intercept term using OLS where all the missing values of X2 have been imputed to be zero.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 19:59:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-should-I-do-the-regression-with-partially-missing-data/m-p/130705#M736</guid>
      <dc:creator>kessler</dc:creator>
      <dc:date>2013-09-06T19:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: How should I do the regression with partially missing data?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-should-I-do-the-regression-with-partially-missing-data/m-p/130706#M737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to capture the fact that the average of missing x2 values might not be zero, you could try fitting your model this way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc model data=yx1x2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;parameters b0 b1 b2 bz;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;z = missing(x2);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if z then x2=0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;y = b0 + x1*b1 + x2*b2 + z*bz;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fit y;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter &lt;STRONG&gt;b0&lt;/STRONG&gt; will account for the overall intercept (you may remove it later if it is not significant) and &lt;STRONG&gt;bz&lt;/STRONG&gt; will account for the average effect of missing x2 values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 22:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-should-I-do-the-regression-with-partially-missing-data/m-p/130706#M737</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-09-06T22:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: How should I do the regression with partially missing data?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-should-I-do-the-regression-with-partially-missing-data/m-p/130707#M738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, kessler. You are right. That is how SAS does it behind the scene.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 14:52:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-should-I-do-the-regression-with-partially-missing-data/m-p/130707#M738</guid>
      <dc:creator>bigbigben</dc:creator>
      <dc:date>2013-09-19T14:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: How should I do the regression with partially missing data?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-should-I-do-the-regression-with-partially-missing-data/m-p/130708#M739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, PG. That is a good way to work around the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 14:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-should-I-do-the-regression-with-partially-missing-data/m-p/130708#M739</guid>
      <dc:creator>bigbigben</dc:creator>
      <dc:date>2013-09-19T14:55:27Z</dc:date>
    </item>
  </channel>
</rss>

