likelihood statistic returned from npsol
Posted on
skenny
Joined: 07/31/2009
Forums
i am following up here on the discussion previously started on the email list. i'm still unsure, after perusing the code and the npsol manual as to weather the raw likelihood or the -2 log likelihood is being returned from the optimizer. i'm wondering if anyone might know where i could find this info? or how i might reasonably search for it in the code (?)
NPSOL doesn't care about the
The computation of the likelihood function is performed by each objective function individually, usually as the function to be minimized. Often, this will mean that the
modelFit@output$minimum
element will contain -2 Log Likelihood, and for the first beta release, that is, in general, the case.Because the objective functions are not guaranteed to be minimizing the likelihood directly (often there are computationally simpler forms that are minimized), you will not be able to count on this in the general case. Instead, you will want to use the summary() function, and pull out the -2 Log Likelihood from there. I think the syntax would be
summary(modelFit)$Minus2LogLikelihood
. Alternately, it should also be inmodelFit@output$Minus2LogLikelihood
, but the recommended access is throughsummary()
.These changes should be available in the most recent developer build (r715).
Log in or register to post comments
In reply to NPSOL doesn't care about the by tbrick
Independence likelihood
In my case it is very different from the $minus2Likelihood of fitting the independence model itself.
-2loglik of independence model : 3096.288
IndependenceLik of target model: 126040060
For the independence model I used a diagonal model.
Thanks in advance! Suzanne
Log in or register to post comments
In reply to Independence likelihood by suzannejak
The $IndependenceLikelihood
Log in or register to post comments
In reply to The $IndependenceLikelihood by Ryne
Thank you for your reply.
Hope you can figure it out, many thanks in advance,
Suzanne
Log in or register to post comments
In reply to Thank you for your reply. by suzannejak
No news yet, but I wanted to
Log in or register to post comments
In reply to No news yet, but I wanted to by Ryne
Ok good to know, thank you!
Log in or register to post comments
In reply to Ok good to know, thank you! by suzannejak
Ok, we figured it out. This
Log in or register to post comments
In reply to Ok, we figured it out. This by Ryne
This should be fixed in
Log in or register to post comments
In reply to No news yet, but I wanted to by Ryne
I opened a ticket for this
Log in or register to post comments