Maximum Likelihood problem

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

coldplayer
Posts: 4
Joined: Wed Nov 23, 2011 4:16 am

Maximum Likelihood problem

Postby coldplayer » Wed Nov 23, 2011 5:53 am

Image

Uploaded with ImageShack.us

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

Re: Maximum Likelihood problem

Postby trubador » Wed Nov 23, 2011 8:31 am

EViews does the summation implicitly, so all you have to do is create Ldt and Lst as series and define their equations seperately. And you'll need @dnorm and @cnorm functions to do that. Your likelihood function will then be Log(Ldt + Lst). You can simply use c(1), c(2), ..., c(n) for your unknown parameters or create your own coefficient vectors. I believe, examples in the manual will guide you through the rest...

coldplayer
Posts: 4
Joined: Wed Nov 23, 2011 4:16 am

Re: Maximum Likelihood problem

Postby coldplayer » Thu Dec 29, 2011 6:38 pm

Thank you for the answer. However, I've followed your advice but then I've encountered a problem. When I want to estimate a LogL object I get the message "Missing values in @logl series at current coefficients at observation.....". I've checked all series and none of them have NA in the sample period. What could be the problem? I'm attaching the workfile I'm using.

This is what I wrote in a LogL specification:

Code: Select all

@logl lf pon=flows-(gama(1)*mmr_eur+gama(2)*yield_ger+gama(3)*ind_eu27+gama(4)*cds_cro+gama(5)*liquid_cro+gama(6)*drate_cro+gama(7)*crobex+gama(8)*resdug_cro) potr=flows-(beta(1)*cpi_cro+beta(2)*inf_cro+beta(3)*crobex+beta(4)*crbxch+beta(5)*ind_cro+beta(6)*indch_cro+beta(7)*resuvoz_cro+beta(8)*drate_cro+beta(9)*cds_cro) potraznja=(1/sigma_s(1))*(@dnorm(pon/sigma_s(1)))*(1-(@cnorm(potr/sigma_d(1)))) ponuda=(1/sigma_d(1))*(@dnorm(potr/sigma_d(1)))*(1-(@cnorm(pon/sigma_s(1)))) lf=log(potraznja+ponuda)
What am I doing wrong?
Attachments
max likelihood.wf1
(56.13 KiB) Downloaded 224 times

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: Maximum Likelihood problem

Postby startz » Thu Dec 29, 2011 7:00 pm

Check your starting values for the parameters.

coldplayer
Posts: 4
Joined: Wed Nov 23, 2011 4:16 am

Re: Maximum Likelihood problem

Postby coldplayer » Thu Dec 29, 2011 7:11 pm

Check your starting values for the parameters.
Starting values are set to 0, but the problem remains if I set them to 1, 10, or any other number.

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: Maximum Likelihood problem

Postby startz » Thu Dec 29, 2011 8:57 pm

set the sigma values to 1000 and it'll run

coldplayer
Posts: 4
Joined: Wed Nov 23, 2011 4:16 am

Re: Maximum Likelihood problem

Postby coldplayer » Fri Dec 30, 2011 3:11 am

set the sigma values to 1000 and it'll run
Thanks for the help, it does work!


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests