<?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: sas code in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/sas-code/m-p/108256#M579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your formula blows up when L is greater than 1 as you will be trying to root of a negative number.&lt;/P&gt;&lt;P&gt;Assuming that by lag operator you mean you want to feed in the previous value of X?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;57&amp;nbsp;&amp;nbsp; data want ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;58&amp;nbsp;&amp;nbsp;&amp;nbsp; x=0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;59&amp;nbsp;&amp;nbsp;&amp;nbsp; do time=1 to 1000 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;60&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e=rannorm(0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;61&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put time= x= e= ' -&amp;gt; ' @;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;62&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x= (1/((1-x)**0.4))*e ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;63&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put x= ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;64&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if x=. then stop;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;65&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;66&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;67&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=1 x=0 e=-0.107529115&amp;nbsp; -&amp;gt; x=-0.107529115&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=2 x=-0.107529115 e=0.3713905792&amp;nbsp; -&amp;gt; x=0.3565240426&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=3 x=0.3565240426 e=0.3788970702&amp;nbsp; -&amp;gt; x=0.4519686557&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=4 x=0.4519686557 e=-0.256832352&amp;nbsp; -&amp;gt; x=-0.326683778&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=5 x=-0.326683778 e=0.1424978021&amp;nbsp; -&amp;gt; x=0.1272627191&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=6 x=0.1272627191 e=0.3964266863&amp;nbsp; -&amp;gt; x=0.4186098767&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=7 x=0.4186098767 e=0.493639789&amp;nbsp; -&amp;gt; x=0.6132295837&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=8 x=0.6132295837 e=0.3337242418&amp;nbsp; -&amp;gt; x=0.4879849812&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=9 x=0.4879849812 e=2.3604100433&amp;nbsp; -&amp;gt; x=3.0851364281&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: Invalid argument(s) to the exponential operator "**" at line 62 column 16.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=10 x=3.0851364281 e=1.5859540911&amp;nbsp; -&amp;gt; x=.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;x=. time=10 e=1.5859540911 _ERROR_=1 _N_=1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2012 19:21:58 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2012-10-26T19:21:58Z</dc:date>
    <item>
      <title>sas code</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/sas-code/m-p/108255#M578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me with the following coding?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a data set of 1000 values for the following model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; X(t) = {(1-L)^0.4]^(-1)} e ,where e is a standard normal random variable and L is the lag operator. I don't know how to deal with the lag operator. finally I need to plot X vs. t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 17:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/sas-code/m-p/108255#M578</guid>
      <dc:creator>malakaext</dc:creator>
      <dc:date>2012-10-26T17:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: sas code</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/sas-code/m-p/108256#M579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your formula blows up when L is greater than 1 as you will be trying to root of a negative number.&lt;/P&gt;&lt;P&gt;Assuming that by lag operator you mean you want to feed in the previous value of X?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;57&amp;nbsp;&amp;nbsp; data want ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;58&amp;nbsp;&amp;nbsp;&amp;nbsp; x=0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;59&amp;nbsp;&amp;nbsp;&amp;nbsp; do time=1 to 1000 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;60&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e=rannorm(0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;61&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put time= x= e= ' -&amp;gt; ' @;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;62&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x= (1/((1-x)**0.4))*e ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;63&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put x= ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;64&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if x=. then stop;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;65&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;66&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;67&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=1 x=0 e=-0.107529115&amp;nbsp; -&amp;gt; x=-0.107529115&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=2 x=-0.107529115 e=0.3713905792&amp;nbsp; -&amp;gt; x=0.3565240426&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=3 x=0.3565240426 e=0.3788970702&amp;nbsp; -&amp;gt; x=0.4519686557&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=4 x=0.4519686557 e=-0.256832352&amp;nbsp; -&amp;gt; x=-0.326683778&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=5 x=-0.326683778 e=0.1424978021&amp;nbsp; -&amp;gt; x=0.1272627191&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=6 x=0.1272627191 e=0.3964266863&amp;nbsp; -&amp;gt; x=0.4186098767&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=7 x=0.4186098767 e=0.493639789&amp;nbsp; -&amp;gt; x=0.6132295837&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=8 x=0.6132295837 e=0.3337242418&amp;nbsp; -&amp;gt; x=0.4879849812&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=9 x=0.4879849812 e=2.3604100433&amp;nbsp; -&amp;gt; x=3.0851364281&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: Invalid argument(s) to the exponential operator "**" at line 62 column 16.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;time=10 x=3.0851364281 e=1.5859540911&amp;nbsp; -&amp;gt; x=.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;x=. time=10 e=1.5859540911 _ERROR_=1 _N_=1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 19:21:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/sas-code/m-p/108256#M579</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-10-26T19:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: sas code</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/sas-code/m-p/108257#M580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks . But I&amp;nbsp; need use the 1st 100 terms of the INFINITE&amp;nbsp; BINOMIAL expansion of the term &lt;SPAN style="font-family: 'courier new', courier;"&gt;(1/((1-x)**0.4)). Can you please modify your model according to it?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 22:08:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/sas-code/m-p/108257#M580</guid>
      <dc:creator>malakaext</dc:creator>
      <dc:date>2012-10-26T22:08:22Z</dc:date>
    </item>
  </channel>
</rss>

