I ran the cvmodel.prg and would like to compute the likelihood value myself. In the output, the results for "amodel" indicate that the log likelihood value is estimated as -281.0251
I tried the following formula (from the users guide), but it gives me a quite different answer. Am I missing something or doing something wrong? I would be glad, if anyone could help me...
Code: Select all
dec rect bmat
compute bmat = ||$
1,0,0,0,0,0|$
0,1,0,0,0,0|$
0,0,1,0,0,0|$
0,0,0,1,0,0|$
0,0,0,0,1,0|$
0,0,0,0,0,1||
compute llog = -%nobs/2*(2*(%log(%det(afrml(t)))-%log(%det(bmat)))-(%trace(%log(inv(bmat)*afrml(t)*%sigma*tr(afrml(t))*inv(tr(bmat))))))