Page 1 of 1

No graph - deterministic case

PostPosted: Mon Nov 03, 2014 12:03 am
by ThornDrive
I expect that the following code gives a graph of y. But no graph is shown.
What am I missing? Can you help?

Code: Select all
var y;
parameters a;

a=0.2;

model(linear);
y=a*y(-1);
end;

initval;
y=10;
end;

steady;

simul(periods = 50);

Re: No graph - deterministic case

PostPosted: Mon Nov 03, 2014 5:54 am
by jpfeifer
No, you need to add
Code: Select all
rplot y;

after the simul command.

Re: No graph - deterministic case

PostPosted: Mon Nov 03, 2014 8:02 am
by ThornDrive
Thanks a lot!
Your help means a lot to me at this stage!