<?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: Simulating Error Distribution with Proc Copula in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Simulating-Error-Distribution-with-Proc-Copula/m-p/398904#M2678</link>
    <description>&lt;P&gt;I don't fully understand your example, but I question whether you want to be using MARGINALS=UNIFORM. Try using MARGINALS=EMPIRICAL as the option to the SIMULATE statement. That will use the empirical CDF as the basis for the simulation of the copula.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2017 18:36:40 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-09-26T18:36:40Z</dc:date>
    <item>
      <title>Simulating Error Distribution with Proc Copula</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Simulating-Error-Distribution-with-Proc-Copula/m-p/396698#M2668</link>
      <description>&lt;P&gt;Rookie here, I am trying to replicate the study in the following paper:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings16/SAS6364-2016.pdf" target="_self"&gt;http://support.sas.com/resources/papers/proceedings16/SAS6364-2016.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The process I followed is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Run Proc Varmax to model BVAR on log-ratio of (RealGDP, CPI and Unemployment Rate). Save residuals in a separate dataset.&lt;/P&gt;&lt;P&gt;-Call Proc Copula to find&amp;nbsp;he joint distribution from the marginal distribution of the residuals.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Once I get that, I use the simulated errors with the forecast means from Varmax to create macroeconomic scenarios.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following issue. My residuals do not follow normal dist. I am not sure how to transform them. Proc Copula does not seem to work with the assumptions. Any idea how I can fix this? Your help is much appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the following code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC COPULA DATA = error_dist;
	VAR Res_RGDP Res_UMP Res_CPI;
	FIT Normal  / 
		MARGINALS = uniform METHOD = MLE;
	SIMULATE / 
		NDRAWS = 1000   SEED = 1 
		MARGINALS = UNIFORM    
		OUTUNIFORM = simulated_errors;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The Error_Dist has values like these:&lt;/P&gt;&lt;P&gt;Res_RGDP Res_UMP Res_CPI&lt;/P&gt;&lt;P&gt;0.0398668592 0.0262994594 0.010727359&lt;BR /&gt;-0.029316863 0.1554613968 0.0061404736&lt;BR /&gt;-0.050879246 0.0763711127 -0.00331784&lt;BR /&gt;0.0068502877 0.1468297946 0.0019326859&lt;BR /&gt;0.0650468136 -0.018832064 0.0044021124&lt;BR /&gt;-0.008798372 0.1423033571 0.0029771118&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Sep 2017 21:55:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Simulating-Error-Distribution-with-Proc-Copula/m-p/396698#M2668</guid>
      <dc:creator>eemrun</dc:creator>
      <dc:date>2017-09-17T21:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Simulating Error Distribution with Proc Copula</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Simulating-Error-Distribution-with-Proc-Copula/m-p/398904#M2678</link>
      <description>&lt;P&gt;I don't fully understand your example, but I question whether you want to be using MARGINALS=UNIFORM. Try using MARGINALS=EMPIRICAL as the option to the SIMULATE statement. That will use the empirical CDF as the basis for the simulation of the copula.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 18:36:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Simulating-Error-Distribution-with-Proc-Copula/m-p/398904#M2678</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-09-26T18:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Simulating Error Distribution with Proc Copula</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Simulating-Error-Distribution-with-Proc-Copula/m-p/402973#M2710</link>
      <description>Thanks! That was the problem.</description>
      <pubDate>Tue, 10 Oct 2017 22:32:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Simulating-Error-Distribution-with-Proc-Copula/m-p/402973#M2710</guid>
      <dc:creator>eemrun</dc:creator>
      <dc:date>2017-10-10T22:32:46Z</dc:date>
    </item>
  </channel>
</rss>

