buianhtuan2000 wrote:Thank you very much Tom
Could you please advise me
What are cu pi ffr ?
buianhtuan2000 wrote:and, How can I save the loading i.e. Lt,St, and Ct for each point of time in an excel file?
I look forward to hearing your relpy.
All the best
dlm(startup=%(DRASetup3(),sw=%diag(swdiag)),$
a=a,sw=sw,sv=sv,c=lambda,y=%eqnxvector(yvars,t)-muy,$
presample=ergodic,method=bfgs,iters=400,$
type=smooth) / xstates
set lt = xstates(t)(1)
set st = xstates(t)(2)
set ct = xstates(t)(3)
copy(format=xls,org=columns) / lt st ctTomDoan wrote:This is a full running example of the base model that should work with version 7. It should be a simple modification to switch the data sets. You might have to change the guess values for mu, but everything else should go through the same as with this.
mike80 wrote:Dear Tom,
I tried to get the shocks from the transition equation (etas in equation 5 on page 313). Is it right that these shocks can be obained by inlcuding the "what" option in the DLM instruction?
dlm(startup=%(DRASetup3(),sw=%diag(swdiag)),$
a=a,sw=sw,sv=sv,c=lambda,y=%eqnxvector(yvars,t)-muy,$
presample=ergodic,method=bfgs,iters=400,what=shocks)
then
set shockL %regstart() %regend() = shocks(t)(1)
In doing so, I have a problem with the generated series. The new series are generally not filled except an "na" as the third observation. In addition, the range of dates (heavily) exceeds the defined one. I am working with Rats 7.3.
Thanks in advance.
Kind regards.
econometrics wrote:Hi Tom,
I've run your model with the original data saved the L,S and C -the estimated betas -in excel but the number of observations exceeds the t and each beta should be estimated for each period t.Can you pls give me some help with that ?
Thank you,
Rosa
econometrics wrote:When I added the code for the betas I just added and not replaced and that 's why I had some added betas. Thank you for your quick replay. I am new to Rats , I just used it a little in the past. Also Tom how can I get the residuals from the fitted curve month by month?
Thank you.
Return to State Space Models/DSGE
Users browsing this forum: No registered users and 0 guests