<?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: Run cross validation for an autoregressive model in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Run-cross-validation-for-an-autoregressive-model/m-p/288241#M1853</link>
    <description>&lt;P&gt;Thank you for your reply. Could you please elaborate more&amp;nbsp;on&amp;nbsp;how to split&amp;nbsp;up sample and run AUTORET multiple times? I appreciate&amp;nbsp;your time.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2016 19:51:29 GMT</pubDate>
    <dc:creator>LawrenceYu01</dc:creator>
    <dc:date>2016-07-29T19:51:29Z</dc:date>
    <item>
      <title>Run cross validation for an autoregressive model</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Run-cross-validation-for-an-autoregressive-model/m-p/286436#M1840</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if there is any way to run a cross validaiton estiamte for an autoregressive model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance, I have a model after using glmselect to run cross validation estimates like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4183i48AE93690F2DF86A/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Untitled.png" title="Untitled.png" /&gt;&lt;/P&gt;&lt;P&gt;I also ran&amp;nbsp;autoreg to generate an&amp;nbsp;&lt;SPAN&gt;autoregressive model, like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4184i4C505E6ADD5F47FD/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="2.png" title="2.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now I have two more lag terms here, how can I write a code to generate a cross validation estimates with those two lag terms?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Or is there any other way to keep them in my model?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Lawrence&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 16:57:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Run-cross-validation-for-an-autoregressive-model/m-p/286436#M1840</guid>
      <dc:creator>LawrenceYu01</dc:creator>
      <dc:date>2016-07-22T16:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Run cross validation for an autoregressive model</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Run-cross-validation-for-an-autoregressive-model/m-p/286664#M1842</link>
      <description>&lt;P&gt;I think an alternative way is to create lagged varaibles manually and run the regression, but the thing is that how do we create lagged values for error terms?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2016 15:00:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Run-cross-validation-for-an-autoregressive-model/m-p/286664#M1842</guid>
      <dc:creator>LawrenceYu01</dc:creator>
      <dc:date>2016-07-24T15:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Run cross validation for an autoregressive model</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Run-cross-validation-for-an-autoregressive-model/m-p/287231#M1843</link>
      <description>&lt;P&gt;Anybody knows how to do it ...?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 15:09:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Run-cross-validation-for-an-autoregressive-model/m-p/287231#M1843</guid>
      <dc:creator>LawrenceYu01</dc:creator>
      <dc:date>2016-07-26T15:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Run cross validation for an autoregressive model</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Run-cross-validation-for-an-autoregressive-model/m-p/288198#M1852</link>
      <description>&lt;P&gt;The AUTOREG procedure cannot do the cross validation directly. If you wanted to crossvalidate the way GLMSELECT does you would have to split up the sample and invoke PROC AUTOREG multiple times. The AR terms would be handled just like any non autoregressive parameters in the model.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 17:47:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Run-cross-validation-for-an-autoregressive-model/m-p/288198#M1852</guid>
      <dc:creator>bbridgerb</dc:creator>
      <dc:date>2016-07-29T17:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Run cross validation for an autoregressive model</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Run-cross-validation-for-an-autoregressive-model/m-p/288241#M1853</link>
      <description>&lt;P&gt;Thank you for your reply. Could you please elaborate more&amp;nbsp;on&amp;nbsp;how to split&amp;nbsp;up sample and run AUTORET multiple times? I appreciate&amp;nbsp;your time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 19:51:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Run-cross-validation-for-an-autoregressive-model/m-p/288241#M1853</guid>
      <dc:creator>LawrenceYu01</dc:creator>
      <dc:date>2016-07-29T19:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Run cross validation for an autoregressive model</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Run-cross-validation-for-an-autoregressive-model/m-p/290225#M1861</link>
      <description>&lt;P&gt;In a data step you need to subsample the data to create the fitting (training) and validation subsamples. In your case you would repeat this process ten times to get random subsamples. The training subsample will be used to fit the model while the validation one will be used to validate it. You can assemble a similar table to the one from GLMSELECT using the AUTOREG results. I am not sure what kind of cross validation you would like to do but you can use the OUTPUT statement in the AUTOREG procedure to get predicted values used in the calculation. You would likely have to append the validation data to the training dataset with the dependent variable missing (trick to exclude these from the estimation but get predictions for them) to get predicted values for them.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 15:51:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Run-cross-validation-for-an-autoregressive-model/m-p/290225#M1861</guid>
      <dc:creator>bbridgerb</dc:creator>
      <dc:date>2016-08-08T15:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Run cross validation for an autoregressive model</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Run-cross-validation-for-an-autoregressive-model/m-p/290281#M1862</link>
      <description>Thank you very much!</description>
      <pubDate>Mon, 08 Aug 2016 19:23:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Run-cross-validation-for-an-autoregressive-model/m-p/290281#M1862</guid>
      <dc:creator>LawrenceYu01</dc:creator>
      <dc:date>2016-08-08T19:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Run cross validation for an autoregressive model</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Run-cross-validation-for-an-autoregressive-model/m-p/290912#M1866</link>
      <description>&lt;P&gt;Another convinient way to do this: proc surveyselect reps=10;&lt;/P&gt;
&lt;P&gt;Then you can use: proc autoreg ; &amp;nbsp;by r&lt;SPAN&gt;eplicate;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 08:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Run-cross-validation-for-an-autoregressive-model/m-p/290912#M1866</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2016-08-11T08:19:32Z</dc:date>
    </item>
  </channel>
</rss>

