state space estimation allowing for different frequencies

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

xychen1
Posts: 7
Joined: Tue Aug 14, 2012 12:26 am

state space estimation allowing for different frequencies

Postby xychen1 » Tue Aug 14, 2012 12:56 am

I have daily, monthly data in my workfile. My model in state space form is as follow,
x(t+1) = c(1) * x(t) = [var =1]
y1(t) = c(2) * x(t) + [var = exp(c(3))] ------this is in daily basis
y2(t) = c(4) * x(t) + y2(t-m) +[var = exp(c(5))] -----this is in monthly basis
I want m to automatic pick up the number of days in each month. wondering how this can b done. And also How I can extract value of x(t).
Many thanks.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: state space estimation allowing for different frequencie

Postby EViews Gareth » Tue Aug 14, 2012 7:52 am

You cannot have data of different frequencies on the same workfile page.

xychen1
Posts: 7
Joined: Tue Aug 14, 2012 12:26 am

Re: state space estimation allowing for different frequencie

Postby xychen1 » Tue Aug 14, 2012 8:20 am

Hi Gareth, I have one more question. Is there any way I can extract my state value x(t)

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: state space estimation allowing for different frequencie

Postby EViews Glenn » Tue Aug 14, 2012 9:09 am

makestates

xychen1
Posts: 7
Joined: Tue Aug 14, 2012 12:26 am

Re: state space estimation allowing for different frequencie

Postby xychen1 » Thu Aug 16, 2012 10:45 am

I got an error message "Near Singular Matrix"
Not so sure what's going on...Is it possible that it is due to my model specification? Highly appreciated if someone can point out for me...
@evar var(e1) =1
@evar var(e2) = exp(c(8))
@evar var(e3) = exp(c(9))
@evar var(e4) = exp(c(10))

@evar cov(e1, e2) = 0
@evar cov(e1, e3) = 0
@evar cov(e2, e3) = 0
@evar cov(e2, e4) = 0
@evar cov(e3, e4) = 0

@state sv1 = c(1) * sv1(-1) + e1
@state u1 = c(2) * u1(-1) +e2
@state sv2 = sv1(-1)
@state sv3 = sv2(-1)
@state sv4 = sv3(-1)
@state sv5 = sv4(-1)
@state sv6 = sv5(-1)
@state sv7 = sv6(-1)

@signal de_ukx_index_c = c(3) * sv1 + u1
@signal de_pmi_c = c(4) * sv1 + de_pmi_c1m* c(5) + e3
@signal de_price_c = c(6) *sv1 + c(6) * sv2 + c(6) * sv3 + c(6) * sv4 + c(6) * sv5 +c(6) * sv7 +de_price_c1w *c(7) + e4

thanks so much


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests