Stochastic model

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

vytama
Posts: 72
Joined: Wed Dec 19, 2012 11:05 am

Stochastic model

Postby vytama » Thu Sep 25, 2014 10:31 am

Hello,
I am trying to create a stochastic model that I could solve it in a program. So far I have this:

var lei_var_1.ls 1 4 rgdp_cycle vlei_lag vemi_lag vfci_lag
lei_var_1.makemodel(M1)
m1.stochastic(p=page1, r=10000)
smpl 2014q3 2020q4
m1.solve (s=s)
pageselect page1
If I solve this model manually through Proc- solve model, the results (obsid, number of repetitions, and series_0) are shown on page 1. However, if I try to run the code above, results show up on current page and not on page1. Also how can I incorporate obsid and repetions id series in this code? I need them in the next step to unstack the page1 by obsid an repetitions id. Thank you. Eviews 8.

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

Re: Stochastic model

Postby EViews Gareth » Thu Sep 25, 2014 10:41 am

You have a space between the solve command and its options.

vytama
Posts: 72
Joined: Wed Dec 19, 2012 11:05 am

Re: Stochastic model

Postby vytama » Thu Sep 25, 2014 10:54 am

thank you, fixed that, but still the same.
and how can I incorporate obsid and repetions id series in this code? Thank you

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

Re: Stochastic model

Postby EViews Gareth » Thu Sep 25, 2014 10:57 am

I am not sure I understand the question then. If I run that code, a page called page1 is created, and selected.

vytama
Posts: 72
Joined: Wed Dec 19, 2012 11:05 am

Re: Stochastic model

Postby vytama » Thu Sep 25, 2014 11:21 am

sorry, I found my mistake. thank you for your help


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests