<?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: Adding additional prediction data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/233950#M54862</link>
    <description>&lt;P&gt;I guess I don't understand what it means "but I wish to get them seperately. "&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why can't you just perform the operation the way you described, and then separate the 2011 data from the earlier data?&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2015 00:27:15 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2015-11-10T00:27:15Z</dc:date>
    <item>
      <title>Adding additional prediction data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/233949#M54861</link>
      <description>&lt;P&gt;How do I add an addtional predictional data while I perform a proc glm or gen mod?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example: I am running a proc glm on a certain data from year 2008 to 2010 and I want the forecasts of 2011 seperately. I can do this in enterprise guide by going to 'predictions' and adding addtional data. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm aware one way is to extend the data from 2008 to 2011 and it will automatically add the forecasts but I wish to get them seperately.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly provide suggestions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Varun&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 00:20:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/233949#M54861</guid>
      <dc:creator>varun1220</dc:creator>
      <dc:date>2015-11-10T00:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding additional prediction data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/233950#M54862</link>
      <description>&lt;P&gt;I guess I don't understand what it means "but I wish to get them seperately. "&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why can't you just perform the operation the way you described, and then separate the 2011 data from the earlier data?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 00:27:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/233950#M54862</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-11-10T00:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding additional prediction data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/233952#M54863</link>
      <description>&lt;P&gt;I will have to changes all my databases (Which are lot) if I decide to do that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 00:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/233952#M54863</guid>
      <dc:creator>varun1220</dc:creator>
      <dc:date>2015-11-10T00:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding additional prediction data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/233964#M54864</link>
      <description>Look at PROC SCORE &lt;BR /&gt;The example is for PROC REG, but it should work for PROC GLM.</description>
      <pubDate>Tue, 10 Nov 2015 03:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/233964#M54864</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-11-10T03:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adding additional prediction data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/233966#M54865</link>
      <description>&lt;P&gt;If I recall accurately, GLM supports RUN groups. &amp;nbsp;So use a WHERE statement to subset:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where (2008 &amp;lt;= year &amp;lt;= 2010);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Don't add a QUIT statement. &amp;nbsp;To add data, change the WHERE statement and re-run:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where (2008 &amp;lt;= year &amp;lt;= 2011);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you're totally done, finish with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's untested but if memory serves this should work. &amp;nbsp;Good luck.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 03:24:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/233966#M54865</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-11-10T03:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding additional prediction data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/233969#M54866</link>
      <description>&lt;P&gt;You can get predictions in separate sets by issuing multiple OUTPUT statements in separate run groups:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=sashelp.class;
model weight = height;
output out=Males(where=(sex="M")) predicted=predWeight;
run;
output out=Females(where=(sex="F")) predicted=predWeight;
run;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Nov 2015 04:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/233969#M54866</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-11-10T04:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding additional prediction data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/234096#M54880</link>
      <description>&lt;P&gt;Statisticians call this "scoring" the regression model.&lt;/P&gt;
&lt;P&gt;See this article: &lt;A href="http://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html" target="_self"&gt;"Techniques for scoring a regression model in SAS"&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 19:14:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/234096#M54880</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-11-10T19:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding additional prediction data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/234124#M54887</link>
      <description>&lt;P&gt;Correct me if I'm wrong!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can use this only when 2008 to 2011 are present in the database right?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example If I'm performing regression on data from 2005 to 2011 then I can use the statement where (2008&amp;lt;= year &amp;lt;= 2011) not when the data is from 2005 to 2007.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 21:48:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/234124#M54887</guid>
      <dc:creator>varun1220</dc:creator>
      <dc:date>2015-11-10T21:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding additional prediction data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/234125#M54888</link>
      <description>&lt;P&gt;This is useful. Thank you. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 21:48:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/234125#M54888</guid>
      <dc:creator>varun1220</dc:creator>
      <dc:date>2015-11-10T21:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding additional prediction data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/234134#M54889</link>
      <description>&lt;P&gt;The WHERE statement will select the observations to use.&amp;nbsp; So if your WHERE statement refers to a range of values that does not appear in your data set, well, you won't get anything useful.&amp;nbsp; You won't get an error, but a regression based on 0 observations will not be helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 22:16:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/234134#M54889</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-11-10T22:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding additional prediction data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/234136#M54890</link>
      <description>&lt;P&gt;This is great! I think it works! Thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why doesn't the Enterprise Guide use this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 22:22:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-additional-prediction-data/m-p/234136#M54890</guid>
      <dc:creator>varun1220</dc:creator>
      <dc:date>2015-11-10T22:22:51Z</dc:date>
    </item>
  </channel>
</rss>

