Likelihood function of lme4
I would also point out that Ed is the author of the nonnest2 package, which already implements the Vuong test (which may be what you're trying to do ??)
On 4/20/21 10:12 AM, Yashree Mehta wrote:
Ed, This function worked perfectly. Thank you! Regards, Yashree On Tue, Apr 20, 2021 at 3:33 PM Merkle, Edgar C. <merklee at missouri.edu> wrote:
Yashree,
You might look at llcont.lmerMod() from the merDeriv package.
Ed
------------------------------
*From:* Yashree Mehta <yashree19 at gmail.com>
*Sent:* Friday, April 16, 2021 7:11 AM
*To:* r-sig-mixed-models at r-project.org <r-sig-mixed-models at r-project.org>
*Subject:* [R-sig-ME] Likelihood function of lme4
Hi,
Where can I find the density function used for lmer model estimation in
lme4?
I need the log likelihood value for each observation because I have to run
a non-nested test statistic for which I have to compare the log likelihood
value of each observation with that from another model.
Regards,
Yashree
[[alternative HTML version deleted]]
[[alternative HTML version deleted]]
_______________________________________________ R-sig-mixed-models at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models