Search found 35 matches

by Jennylai
Mon Aug 20, 2012 2:33 am
Forum: Help With Programming
Topic: Can RATS program continues even it encounters error message?
Replies: 2
Views: 5204

Can RATS program continues even it encounters error message?

I have got a question to ask you. I was trying to use RATS to do some nonlinear estimations. During my grid search process, I need to specify different initial values for the parameters. As you know, some of the initial values may work and some may not. However, RATS will stop executing the loops an...
by Jennylai
Mon Sep 07, 2009 10:35 pm
Forum: Graphics, Reports, and Other Output
Topic: About the KEYLABEL option in GRAPH command
Replies: 1
Views: 7848

About the KEYLABEL option in GRAPH command

Hi, may I ask a question about the KEYLABEL option in GRAPH command? My code is as follows: declare vect[string] grakey compute grakey = ||'BMS','S&T','EMS','ACT'|| graph(header='predicted values of BF and true out of sample BF',patterns,keylabel=grakey,key=below) 4 # ytf_ne / 3 # ytfs / 5 # ytx...
by Jennylai
Sat Aug 22, 2009 8:26 pm
Forum: State Space Models/DSGE
Topic: Random Walk+Trigonometric Seasonality in State Space Form
Replies: 4
Views: 8088

Re: Random Walk+Trigonometric Seasonality in State Space Form

Dear Tom,

Thank you very much! You are a genius!!!
by Jennylai
Fri Aug 21, 2009 10:30 pm
Forum: State Space Models/DSGE
Topic: Random Walk+Trigonometric Seasonality in State Space Form
Replies: 4
Views: 8088

Re: Random Walk+Trigonometric Seasonality in State Space Form

Dear Tom, Thank you for your reply. However, What I want is a little bit different from the original Ramdom walk component + Trigonometric seasonal component. My model looks like this: y(t) = y(t-1) + trigonometric seasonal component + epsilon(t) (This is the measurement equation) Here the Ramdom Wa...
by Jennylai
Fri Aug 21, 2009 9:33 pm
Forum: State Space Models/DSGE
Topic: Random Walk+Trigonometric Seasonality in State Space Form
Replies: 4
Views: 8088

Random Walk+Trigonometric Seasonality in State Space Form

Dear Tom, May I ask you question about putting a Random Walk + Trigonometric Seasonality in State Space Form? The model is basically like this: y(t) = y(t-1) + trigonometric seasonal component + epsilon(t) ---- (this is the measurement equation.) y(t-1)=y(t-2)+trigonometric seasonal component + epsi...
by Jennylai
Tue Aug 04, 2009 8:10 pm
Forum: State Space Models/DSGE
Topic: Post-Sample predictive test in State Space Model
Replies: 6
Views: 12027

Re: Post-Sample predictive test in State Space Model

Dear Tom,

Thank you very much for your help all the time! It helped me a lot!
by Jennylai
Thu Jul 30, 2009 2:18 am
Forum: Help With Programming
Topic: How to convert a vect into a series?
Replies: 4
Views: 24681

Re: How to convert a vect into a series?

Dear Tom,

Thank you very much for your generous help all the time! I've worked that out!
by Jennylai
Wed Jul 29, 2009 8:46 pm
Forum: Help With Programming
Topic: How to convert a vect into a series?
Replies: 4
Views: 24681

Re: How to convert a vect into a series?

Dear Tom, Thank you very much! May I ask another question? If I have a series called ya in a program file prg1.r, and I want to use this ya together with other series yb which is in another program file prg2.r to graph some comparison figure, what should I do? How shall I proceed? Thank you very much!
by Jennylai
Wed Jul 29, 2009 7:44 am
Forum: Help With Programming
Topic: How to convert a vect into a series?
Replies: 4
Views: 24681

How to convert a vect into a series?

Dear all,

My question is: How should I do if I want to convert a vector into a series?

For example, I have a 9by1 vector y, and I want to assign the values of each ofthe element in this vector y to a series yt starting from 2008:2 to 2008:10 ?

Thank you very much!
by Jennylai
Mon Jul 27, 2009 8:05 am
Forum: State Space Models/DSGE
Topic: Post-Sample predictive test in State Space Model Again
Replies: 0
Views: 5216

Post-Sample predictive test in State Space Model Again

Dear Tom, Last time I used the code below to calculate the post sample prediction errors: smpl 2008:02 2008:10 * * Then we put the dummy variable for out-of-sample back on track. * dec frml[rect] cof frml cof = c~~%zeros(1,1)~~forcn{1} * dlm(y=FDI,a=a,c=cof,sv=sigmastar,sw=sw*sigmastar,x0=xstates(20...
by Jennylai
Mon Jul 27, 2009 7:17 am
Forum: State Space Models/DSGE
Topic: After DLM estimation, How to calculate forecast error?
Replies: 0
Views: 4933

After DLM estimation, How to calculate forecast error?

Dear Tom, May I ask a question about how to calculate the forecast error of a State space model I estimated using DLM? For example, I want to calculate the forecast errors from the two models I estimated using Durkp162.r where one model with no explanatory variables and the other has some explanator...
by Jennylai
Wed Jul 15, 2009 1:11 am
Forum: State Space Models/DSGE
Topic: Post-Sample predictive test in State Space Model
Replies: 6
Views: 12027

Re: Post-Sample predictive test in State Space Model

Dear Tom,

Thank you very much for your kind reply! It helps a lot!
by Jennylai
Tue Jul 14, 2009 8:03 pm
Forum: State Space Models/DSGE
Topic: Post-Sample predictive test in State Space Model
Replies: 6
Views: 12027

Re: Post-Sample predictive test in State Space Model

Dear Tom, I've solved the error that RATS reports in my above post by using : " smpl 2008:02 2009:03 dlm(y=FDI,a=a,c=c,sv=sigmastar,sw=sw*sigmastar,x0=xsmooth(2008:01),sx0=psmooth(2008:01),$ type=filter,vhat=vps,svhat=svps) 2008:02 2009:03 set svps1 = svps(t)(1,1) set vps1 = vps(t)(1) set eohat...
by Jennylai
Tue Jul 14, 2009 8:08 am
Forum: State Space Models/DSGE
Topic: Post-Sample predictive test in State Space Model
Replies: 6
Views: 12027

Re: Post-Sample predictive test in State Space Model

Dear Tom, I am now doing the predictive testing for State Space Model. May I ask for your advice and help? The thing is this: I chop my sample into two subsamples: sub1 for insample estimation using DLM, and sub2 for out-of-sample predictive testing (which is decribed by Harvey(1989) on P271). What ...
by Jennylai
Mon Jul 13, 2009 7:39 am
Forum: State Space Models/DSGE
Topic: Post-Sample predictive test in State Space Model
Replies: 6
Views: 12027

Post-Sample predictive test in State Space Model

Dear Tom, May I ask you another question about State space model? In Harvey(1989)'s book, on page 270 there is a test called " post-sample predictive testing and model evaluation". May I know if RATS has a built-in test for this "post-sample predictive test" Thank you very much f...