[R] Error in optim

djbanana karl79264219 at gmail.com
Fri Oct 28 23:10:40 CEST 2011


I understand that the likelihood function is a product and hence the log
likelihood function is a sum. However I can't figure out what the problem
is.

Here's the likelihood function:

[(alpha1*beta2*gamma)^v1 exp^(-alpha1*beta2*gamma)]/v1! * [(alpha2*beta1)^v2
exp^(-alpha2*beta1)]/v2!

Isn't the log-likelihood function as I calculated before?

Thanks,
DJ

--
View this message in context: http://r.789695.n4.nabble.com/Error-in-optim-tp3948980p3949218.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list