Maximum likelihood estimation

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

beniam
Posts: 5
Joined: Tue Aug 28, 2012 1:39 am

Maximum likelihood estimation

Postby beniam » Tue Aug 28, 2012 1:46 am

I desperately need some assistance on the Likelihood Estimation Problem that I am encountering while etimating a 3 month interet rate uing an interest rate model.

I am using EVIEWS 7, Version 7.2.

The logl specification is as shown below.

'ckls Model

@logl logl1

@byeqn

'@param c(1) 0.002 c(2) -0.0273 c(3) 0.07 c(4) 1.35

error=r3m-exp(c(2))*(lagr3m)-(c(1)/c(2))*(exp(c(2))-1)

mttsq=(c(3)/(2*c(2)))*(exp(2*(c(2)))-1)*((lagr3m)^(2*(c(4))))

logl1=-(2*log(sqr(mttsq))+(error^2/mttsq))

While running for the estimation, it always returns to me an error message reading " Missing values in @LOGL series at current coefficients at observation 1". I have done a quick analysis on the data and the expressions in my LOGL object are totally out of the line. The "error", "mttsq" and "logl1" functions have no real values (i.e. it is missing and says NA). I do not know what to do and any help would be appreciated.

Thank you in advanvce!
Regard,
beniam

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

Re: Maximum likelihood estimation

Postby EViews Gareth » Tue Aug 28, 2012 7:49 am

What starting values are you using?

beniam
Posts: 5
Joined: Tue Aug 28, 2012 1:39 am

Re: Maximum likelihood estimation

Postby beniam » Tue Aug 28, 2012 8:22 am

What starting values are you using?
Gareth, Thank you so much for your replay. I am using known values from previous estimations (by other study) but I have even arbitrarily set the coefficients and none of it seems working. I appreciate your help very much!
Beniam

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

Re: Maximum likelihood estimation

Postby EViews Gareth » Tue Aug 28, 2012 8:36 am

You need to find starting values for which the expression:
error=r3m-exp(c(2))*(lagr3m)-(c(1)/c(2))*(exp(c(2))-1)
does not result in an NA

beniam
Posts: 5
Joined: Tue Aug 28, 2012 1:39 am

Re: Maximum likelihood estimation

Postby beniam » Fri Aug 31, 2012 9:13 am

You need to find starting values for which the expression:
error=r3m-exp(c(2))*(lagr3m)-(c(1)/c(2))*(exp(c(2))-1)
does not result in an NA
Thank you indeed for the help!

beniam
Posts: 5
Joined: Tue Aug 28, 2012 1:39 am

Re: Maximum likelihood estimation

Postby beniam » Sun Sep 02, 2012 6:51 pm

Hi,
I have succesfuly estimated two non-linear nested models using the Logl object and I wanted to apply the log likelihood ratio test. I have entered the following code in to the comand bar;

scalar lr = -2*(CKLS.@logl - Vasicek.@logl)
scalar q =1
scalar lr_pval = 1 - @cchisq(lr,q)

Where "Ckls" is the alternative model and the "Vasicek" is the null model.
While trying to estimate, I get an error mesage reading "LR is not defined". Am I doing something wrong? I appreciate any help.

Kindly,
Ben


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests