question about fitted value series

For questions regarding programming in the EViews programming language.

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

kanonathena
Posts: 14
Joined: Thu Jul 15, 2010 2:24 am

question about fitted value series

Postby kanonathena » Fri Sep 03, 2010 6:54 am

Hi,

I used sample 1973q1 1990q4 to generate out of sample forecast for 1991q1, but the forecast series seems to contain fitted value(don't know if they are indeed fitted values) for the entire sample range within the workfile, not just one period, what is wrong with my code?

' set sample to estimation period
smpl 1973q1 1990q4

' estimate equation
equation eq1.ls inf c inl(-1)

'generate fited value
smpl 1991q1 1991q1
eq1.fit inffit

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

Re: question about fitted value series

Postby EViews Gareth » Fri Sep 03, 2010 7:29 am

By default, EViews will put in the actual (true) values for any periods that are not forecasted/fitted. You can turn this off with the (f=na) option:

Code: Select all

eq1.fit(f=na) inffit


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest