Allow only non-negative forecast result values

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

Jariel
Posts: 12
Joined: Wed May 13, 2015 8:25 am

Allow only non-negative forecast result values

Postby Jariel » Thu Oct 29, 2015 3:47 pm

My data is strictly positive (and zero values), and the output of a forecast should be only positive (and zero values) too.
My equation (simplified) looks something like this: y = 3 * x - 1 * z
So it's possible that a negative value arises if e.g. x is 0 and z is above 0.
But i don't want negative values, can i somehow specify that negative forecasts of y should be converted to 0?

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

Re: Allow only non-negative forecast result values

Postby EViews Gareth » Thu Oct 29, 2015 3:51 pm

Perform the forecast, then recode it:

Code: Select all

yf = @recode(yf<0,0,yf)
where yf is the name of your forecast series.

Jariel
Posts: 12
Joined: Wed May 13, 2015 8:25 am

Re: Allow only non-negative forecast result values

Postby Jariel » Thu Oct 29, 2015 3:56 pm

Thanks.

But i would also need the forecast evaluation under the condition that all negative values are zeros. Is it possible to somehow specify it in the estimation equation?

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

Re: Allow only non-negative forecast result values

Postby EViews Gareth » Thu Oct 29, 2015 3:59 pm

No. But you can always calculate the forecast evaluations yourself using the @mape, @rmse, @theil functions.

Jariel
Posts: 12
Joined: Wed May 13, 2015 8:25 am

Re: Allow only non-negative forecast result values

Postby Jariel » Thu Oct 29, 2015 4:13 pm

Thanks i'll look it up.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests