Maximum Likelihood estimation in EViews

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

gbengaibikunle
Posts: 3
Joined: Sun Jun 19, 2011 3:47 am

Maximum Likelihood estimation in EViews

Postby gbengaibikunle » Sun Jun 19, 2011 3:59 am

Hi all,

Please find attached an untitled .jpeg image containing a maximum likelihood specification I have been struggling with estimating in Eviews. I have been receiving a constant error message: "Missing values in @LOGL series at current coefficients at observation 2" And once I populate the observation, it simply goes on to complain about the next observation point. In the vent that all observation points are population, it instead screams: "OVERFLOW". It's been very frustrating for the last few days. Can you help please?

Thank you.

gb
Attachments
Untitled.jpg
Untitled.jpg (34.63 KiB) Viewed 5632 times

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

Re: Maximum Likelihood estimation in EViews

Postby EViews Gareth » Sun Jun 19, 2011 9:58 am

It is doubtful you'll get much help without showing what you've done so far.

gbengaibikunle
Posts: 3
Joined: Sun Jun 19, 2011 3:47 am

Re: Maximum Likelihood estimation in EViews

Postby gbengaibikunle » Mon Jun 20, 2011 12:02 pm

Hi Gareth,
I have written a number of lines, but this is the only one that has given me any measure of result so far, however, the results are spurious. They do not include standard errors:

@logl logl1
f1=@exp(-c(4))*((c(4))^b/@fact(b))*@exp(-c(4))*((c(4))^s/@fact(s))
f2=@exp(-c(4))*((c(4))^b/@fact(b))*@exp(-(c(3)+c(4)))*(((c(3)+c(4)))^s/@fact(s))
f3=@exp(-c(4))*((c(4))^s/@fact(s))*@exp(-(c(3)+c(4)))*(((c(3)+c(4)))^b/@fact(b))

logl1=(1-c(1))*f1+(c(1)*c(2))*f2+(c(1)*(1-c(2)))*f3
@param c(1) 0.1 c(2) 0.1 c(3) 0.1 c(4) 1

Thank you.

Kind regards,

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

Re: Maximum Likelihood estimation in EViews

Postby trubador » Tue Jun 21, 2011 1:04 am

It looks like you are trying to estimate a probability of informed trade (PIN) model. In practice, if you want to estimate your model with maximum likelihood, then you should transform the likelihood function to ease the computational burden. For an example of logarithmic transformation of the likelihood function, please see: David Easley, Soeren Hvidkjaer and Maureen O’Hara (2010). "Factoring Information into Returns". Journal of Financial and Quantitative Analysis, 45, pp 293-309

Please also note that, factorial representations of variables easily lead to numerical problems (e.g. Overflow). It would be wise to transform these variables beforehand (e.g. b = b/1000).

gbengaibikunle
Posts: 3
Joined: Sun Jun 19, 2011 3:47 am

Re: Maximum Likelihood estimation in EViews

Postby gbengaibikunle » Tue Jun 21, 2011 4:32 am

Dear Trubador,

Thanks for your help. I did try the @logit function in Eviews earlier and also took a log of the likelihood function with no results. I will read the paper you recommended and see if anything in there helps.
Once again, many thanks.

Kind regards

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

Re: Maximum Likelihood estimation in EViews

Postby trubador » Tue Jun 21, 2011 7:50 am

Simply taking the logarithm of the function will not work. I was referring to monotonic transformation. You can find the transformed version of the likelihood function in Easley et.al. (2010).


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests