<?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 autoregressive error in solving ordinary differential equations in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/autoregressive-error-in-solving-ordinary-differential-equations/m-p/55079#M2532</link>
    <description>Hi, &lt;BR /&gt;
Could anyone please help me code the following model in SAS? In essence, I am trying to incorporate autoregressive error in an ordinary differential equation. &lt;BR /&gt;
&lt;BR /&gt;
x_dot_t = (N - x_t) * (theta1 + theta2 * x_t) + e_t &lt;BR /&gt;
&lt;BR /&gt;
e_t = rho * e_t-1 + u_t&lt;BR /&gt;
&lt;BR /&gt;
The code without the autoregressive error is: &lt;BR /&gt;
&lt;BR /&gt;
proc model data=test;&lt;BR /&gt;
params theta1 theta2 N;&lt;BR /&gt;
dert.x = (N-x)*(theta1+theta2*x);&lt;BR /&gt;
fit x/time=t dw;&lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
I have tried the following and none of them works: &lt;BR /&gt;
&lt;BR /&gt;
1.  %ar(dert.x,1), &lt;BR /&gt;
2. dert.x = (N-x)*(theta1+theta2*x) + zlag1(dert.x-(N-x)*(theta1+theta2*x));&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance for your help.</description>
    <pubDate>Thu, 21 Apr 2011 20:27:25 GMT</pubDate>
    <dc:creator>hvganesh</dc:creator>
    <dc:date>2011-04-21T20:27:25Z</dc:date>
    <item>
      <title>autoregressive error in solving ordinary differential equations</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/autoregressive-error-in-solving-ordinary-differential-equations/m-p/55079#M2532</link>
      <description>Hi, &lt;BR /&gt;
Could anyone please help me code the following model in SAS? In essence, I am trying to incorporate autoregressive error in an ordinary differential equation. &lt;BR /&gt;
&lt;BR /&gt;
x_dot_t = (N - x_t) * (theta1 + theta2 * x_t) + e_t &lt;BR /&gt;
&lt;BR /&gt;
e_t = rho * e_t-1 + u_t&lt;BR /&gt;
&lt;BR /&gt;
The code without the autoregressive error is: &lt;BR /&gt;
&lt;BR /&gt;
proc model data=test;&lt;BR /&gt;
params theta1 theta2 N;&lt;BR /&gt;
dert.x = (N-x)*(theta1+theta2*x);&lt;BR /&gt;
fit x/time=t dw;&lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
I have tried the following and none of them works: &lt;BR /&gt;
&lt;BR /&gt;
1.  %ar(dert.x,1), &lt;BR /&gt;
2. dert.x = (N-x)*(theta1+theta2*x) + zlag1(dert.x-(N-x)*(theta1+theta2*x));&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance for your help.</description>
      <pubDate>Thu, 21 Apr 2011 20:27:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/autoregressive-error-in-solving-ordinary-differential-equations/m-p/55079#M2532</guid>
      <dc:creator>hvganesh</dc:creator>
      <dc:date>2011-04-21T20:27:25Z</dc:date>
    </item>
  </channel>
</rss>

