How does lmer (from the R package lme4) compute log likelihood?
I'm trying to understand the function lmer. I've found plenty of information about how to use the command, but not much about what it's actually doing (save for some cryptic comments here: http://www.bioconductor.org/help/course-materials/2008/PHSIntro/lme4Intro-handout-6.pdf ). I'm playing with the following simple example: library(data.table) library(lme4) options(digits=15) n<-1000 m<-100 data<-data.table(id=sample(1:m,n,replace=T),key="id") b<-rnorm(m) data$y<-rand[data$id]+rnorm(n)*0.1 fitted<-lmer(b~(1|id),data=data,verbose=T) fitted I understand that lmer is fitting a model of the form