How to include trend in residual variance

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

gatabuta
Posts: 1
Joined: Sun Nov 07, 2010 6:45 pm

How to include trend in residual variance

Postby gatabuta » Sun Nov 07, 2010 6:57 pm

Dear fellows,

I wonder how to include trend in residual variance.
For instance,
y = alpha + beta*x + e
E(e^2) = v_0 + v*@trend

Best wishes.

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: How to include trend in residual variance

Postby trubador » Mon Nov 08, 2010 1:02 am

You need to do maximum likelihood estimation. EViews has a LogL ojbect (Object/New Object/LogL) to handle this kind of estimation problems. Your model can be specified as follows:

Code: Select all

@logl mle rsdl = y - c(1) - c(2)*x var = c(3)+c(4)*@trend mle = log(@dnorm(rsdl/@sqrt(var))) - log(var)/2 param c(1) .0 c(2) .0 c(3) .1 c(4) .0
Please keep in mind that you might experience some convergence problems due to the variance specification. In that case, you can assign different starting values for the coefficients to be estimated (i.e. the last line that starts with the param command) or change the specification itself.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests