Likelihood Estimation problem
Posted: Mon Feb 23, 2009 4:23 pm
Good morning,
first of all I'm sorry for my English...I'm Italian so I'm sure that I will do many mistakes, I'm sorry!
In my work I have two series: DJ and MSCI with the sample (01/01/1980 - 01/30/2009) .
First I have to calculate earnings so I do:
- series dldj = dlog(DJ)
- series dlmsci = dlog(MSCI)
and so I create the series Y=dldj-dlmsci .
Then I create a dummy variable in this way:
smpl @all
genr dummy = 0
smpl 20/01/1981 30/01/1981
genr dummy = 1
smpl 20/01/1989 30/01/1989
genr dummy = 1
smpl 20/01/1993 30/01/1993
genr dummy = 1
smpl 20/01/2001 30/01/2001
genr dummy = 1
smpl 20/01/2009 30/01/2009
genr dummy = 1
smpl @all
So now I've got a problem because I've to estimate this
@logl loglik
eps = y-c(1)-c(2)*dummy
sik = exp(c(3)+c(4)*dummy)
sika = @sqrt(sik)
ink = eps/sika
loglik = log( @dged(ink,2+c(5)) ) - log(sik)
but there is always an error, that is "Missing values in @LOGL series at current coefficients at observation 1/01/1980" if my sample begin with 01/01/1980, instead if my sample for example begin with 01/15/1980 there is the same problem, that is "Missing values in @LOGL series at current coefficients at observation 01/15/1980"...I don't understand why...can you help me please?
I hope to have an answer
Sincerely
first of all I'm sorry for my English...I'm Italian so I'm sure that I will do many mistakes, I'm sorry!
In my work I have two series: DJ and MSCI with the sample (01/01/1980 - 01/30/2009) .
First I have to calculate earnings so I do:
- series dldj = dlog(DJ)
- series dlmsci = dlog(MSCI)
and so I create the series Y=dldj-dlmsci .
Then I create a dummy variable in this way:
smpl @all
genr dummy = 0
smpl 20/01/1981 30/01/1981
genr dummy = 1
smpl 20/01/1989 30/01/1989
genr dummy = 1
smpl 20/01/1993 30/01/1993
genr dummy = 1
smpl 20/01/2001 30/01/2001
genr dummy = 1
smpl 20/01/2009 30/01/2009
genr dummy = 1
smpl @all
So now I've got a problem because I've to estimate this
@logl loglik
eps = y-c(1)-c(2)*dummy
sik = exp(c(3)+c(4)*dummy)
sika = @sqrt(sik)
ink = eps/sika
loglik = log( @dged(ink,2+c(5)) ) - log(sik)
but there is always an error, that is "Missing values in @LOGL series at current coefficients at observation 1/01/1980" if my sample begin with 01/01/1980, instead if my sample for example begin with 01/15/1980 there is the same problem, that is "Missing values in @LOGL series at current coefficients at observation 01/15/1980"...I don't understand why...can you help me please?
I hope to have an answer
Sincerely