R: Bootstrapped binary mixed-model logistic regression using bootMer() of the new lme4 package

前端 未结 2 798
太阳男子
太阳男子 2021-02-06 16:53

I want to use the new bootMer() feature of the new lme4 package (the developer version currently). I am new to R and don\'t know which function should I write for its FUN argume

2条回答
  •  心在旅途
    2021-02-06 17:44

    This might be the same problem, that I reported as an issue here. At least it leads to the same, unhelpful error message and took me a while too.

    That would mean you have missings in your data, which lmer ignores but which kill bootMer.

    Try:

    (mixed5 <- glmer(DV ~ (Demo1 +Demo2 +Demo3 +Demo4 +Trt)^2 
                     + (1 | PatientID) + (0 + Trt | PatientID)
                     , family=binomial(logit), na.omit(MixedModelData4[,c('DV','Demo1','Demo2','Demo3','Trt','PatientId')])))
    

提交回复
热议问题