<?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: PROC SSM in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-SSM/m-p/822122#M4454</link>
    <description>&lt;P&gt;You will have to send me your full code (data and program) and the article for me to comment any further.&amp;nbsp; My email is rajesh.selukar@sas.com&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2022 18:57:43 GMT</pubDate>
    <dc:creator>rselukar</dc:creator>
    <dc:date>2022-07-07T18:57:43Z</dc:date>
    <item>
      <title>PROC SSM</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-SSM/m-p/821972#M4451</link>
      <description>&lt;P&gt;Please, can anyone help with PROC SSM code for this state space model?&lt;/P&gt;&lt;P&gt;Observation equation:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mawuli_0007_0-1657163093824.png" style="width: 264px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73014i2008B641515981F1/image-dimensions/264x40?v=v2" width="264" height="40" role="button" title="mawuli_0007_0-1657163093824.png" alt="mawuli_0007_0-1657163093824.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mawuli_0007_1-1657163093824.png" style="width: 270px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73013i752B2E235BE2D229/image-dimensions/270x39?v=v2" width="270" height="39" role="button" title="mawuli_0007_1-1657163093824.png" alt="mawuli_0007_1-1657163093824.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;State equation:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mawuli_0007_2-1657163150971.png" style="width: 363px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73015i81127D6310DA32CA/image-dimensions/363x33?v=v2" width="363" height="33" role="button" title="mawuli_0007_2-1657163150971.png" alt="mawuli_0007_2-1657163150971.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mawuli_0007_3-1657163150971.png" style="width: 353px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73016i08BBC7668BFF854C/image-dimensions/353x41?v=v2" width="353" height="41" role="button" title="mawuli_0007_3-1657163150971.png" alt="mawuli_0007_3-1657163150971.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mawuli_0007_4-1657163150971.png" style="width: 320px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73017i2E41AE73939DAE34/image-dimensions/320x138?v=v2" width="320" height="138" role="button" title="mawuli_0007_4-1657163150971.png" alt="mawuli_0007_4-1657163150971.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Parameters:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mawuli_0007_5-1657163343639.png" style="width: 403px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73018i3757D524C9F01B87/image-dimensions/403x39?v=v2" width="403" height="39" role="button" title="mawuli_0007_5-1657163343639.png" alt="mawuli_0007_5-1657163343639.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 03:10:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-SSM/m-p/821972#M4451</guid>
      <dc:creator>mawuli_0007</dc:creator>
      <dc:date>2022-07-07T03:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SSM</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-SSM/m-p/822079#M4452</link>
      <description>&lt;P&gt;Hello mawuli_0007,&lt;BR /&gt;Assuming that the rho*GDP_t term in the right hand side of your &lt;BR /&gt;state equation is, in fact, rho*GDP_(t-1), we can formulate your&lt;BR /&gt;model as follows:&lt;/P&gt;
&lt;P&gt;Latent 2-dimensional state: alpha_t = (GDP_t, mu)&lt;BR /&gt;State equation:&lt;BR /&gt;alpha_t = T alpha_(t-1) + eta_t&lt;BR /&gt;alpha_1 = delta (i.e., both elements diffuse)&lt;/P&gt;
&lt;P&gt;Where the 2-dimensional transition matrix is (displayed row-wise)&lt;BR /&gt;T = (rho 1-rho; 0 1).&lt;BR /&gt;eta_t is two-dimensional white noise with diagonal covariance&lt;BR /&gt;(sigma_sq_g, 0).&lt;BR /&gt;Note that your mu parameter is treated as a latent state in this&lt;BR /&gt;formulation &lt;BR /&gt;Even though you don't mention it, I will assume that the parameter&lt;BR /&gt;rho is a damping factor, i.e., 0 &amp;lt;= rho &amp;lt;= 1.&lt;/P&gt;
&lt;P&gt;Let epsilon_t denote 2-dimensional white noise with full covariance matrix.&lt;BR /&gt;Then your observation equations are:&lt;BR /&gt;GDP_lt = alpha_t[1] + epsilon_t[1]&lt;BR /&gt;GDP_et = alpha_t[1] + epsilon_t[2]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SSM code for this will be something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc ssm data=test;&lt;BR /&gt;id time .. ; *specify the time ID with proper interval;&lt;BR /&gt;parms rho / lower=0 upper=1;&lt;BR /&gt;parms G_sigma / lower=1.e-8;&lt;BR /&gt;zero = 0.0;&lt;BR /&gt;one = 1.0;&lt;BR /&gt;one_minus_rho = 1 - rho;&lt;BR /&gt;&lt;BR /&gt;state alpha(2) t(g) = (rho one_minus_rho zero one) &lt;BR /&gt;cov(d)=(G_sigma zero) a1(2);&lt;BR /&gt;comp gdp = alpha[1];&lt;BR /&gt;comp mu = alpha[2]; *to output the estimated mu;&lt;/P&gt;
&lt;P&gt;state noise(2) type=wn cov(g);&lt;BR /&gt;comp ep1 = noise[1];&lt;BR /&gt;comp ep2 = noise[2];&lt;/P&gt;
&lt;P&gt;model gdp_l = gdp ep1;&lt;BR /&gt;model gdp_e = gdp ep2;&lt;/P&gt;
&lt;P&gt;output out=for press;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 15:21:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-SSM/m-p/822079#M4452</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2022-07-07T15:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SSM</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-SSM/m-p/822115#M4453</link>
      <description>&lt;P&gt;Hi Secular,&lt;/P&gt;&lt;P&gt;Thank you so much for code sample.&amp;nbsp;You are correct the right hand side is rho*GDP_t-1 and rho &amp;lt; 1. Your code sample run without error, but did not produce any result except &lt;EM&gt;input data set information, model summary, and ID variable information&lt;/EM&gt;. I am trying to replicate a working paper by Aruba et. al. (2013). The paper is entitled Improving GDP Measurement: A Measurement-Error Perspective. They used a slightly different state space representation than your formulation as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;State equation:&lt;/P&gt;&lt;P&gt;GDP_t = mu(1-rho) + rho*GDP_(t-1) + eta_Gt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;alpha_t = K + T alpha_(t-1) + eta_t&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where is K 3 by 1 matrix (displayed row-wise)&lt;/P&gt;&lt;P&gt;K =(mu(1-rho) 0 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;T is 3 by 3 matrix (displayed row-wise)&lt;/P&gt;&lt;P&gt;T=(rho 0 0, 0 0 0, 0 0 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;alpha_t is 3 by 1 matrix&amp;nbsp;(displayed row-wise)&lt;/P&gt;&lt;P&gt;alpha_t = (GDP_t eta_It eta_Et)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Observation equation:&lt;/P&gt;&lt;P&gt;GDP_It = GDP_t + eta_It&lt;/P&gt;&lt;P&gt;GDP_Et = GDP_t + eta_Et&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Y_t = Z alpha_t&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where Y_t is 2 by 1 matrix&amp;nbsp;(displayed row-wise)&lt;/P&gt;&lt;P&gt;Y_t = (GDP_It GDP_Et)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Z is 2 by 3 matrix&amp;nbsp;(displayed row-wise)&lt;/P&gt;&lt;P&gt;Z = (1 1 0, 1 0 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;alpha_t is 3 by 1 matrix&amp;nbsp;(displayed row-wise)&lt;/P&gt;&lt;P&gt;alpha_t = (GDP_t eta_It eta_Et)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(eta_Gt, eta_It, eta_Et) ~iidN(0,∑) where&lt;/P&gt;&lt;P&gt;∑ is 3 by 3 matrix&amp;nbsp;(displayed row-wise)&lt;/P&gt;&lt;P&gt;∑ = (sigma_sq_GG 0 0, 0 sigma_sq_II sigma_sq_IE, 0&amp;nbsp;sigma_sq_EI sigma_sq_EE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My difficulty is with the constant K matrix in the state equation as I've not seen any example in the Proc SSM manual with the K matrix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 18:44:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-SSM/m-p/822115#M4453</guid>
      <dc:creator>mawuli_0007</dc:creator>
      <dc:date>2022-07-07T18:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SSM</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-SSM/m-p/822122#M4454</link>
      <description>&lt;P&gt;You will have to send me your full code (data and program) and the article for me to comment any further.&amp;nbsp; My email is rajesh.selukar@sas.com&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 18:57:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-SSM/m-p/822122#M4454</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2022-07-07T18:57:43Z</dc:date>
    </item>
  </channel>
</rss>

