Displaying 1 result from an estimated 1 matches for "mylmer1".
Did you mean:
aylmer
2006 Mar 08
1
Want to fit random intercept in logistic regression (testing lmer and glmmML)
...show more evidence of the random intercept?
myglm4 <- glm(y~x, family=quasibinomial)
summary(myglm4)
# Can I estimate with lmer?
library(lme4)
### With no repeated observations, what does lmer want?
### Clusters of size 1 ?
### In lme, I'd need random= ~ 1
idnumber <- 1: length(y)
mylmer1 <- lmer( y ~ x + ( 1 | idnumber ), family=binomial, method="Laplace" )
summary(mylmer1)
### Glmm wants clusters, and I don't have any clusters with more than
1 observation
###
library(glmmML)
myglmm1 <- glmmML(y~x, family=binomial, cluster = idnumber )
summary(myglmm1)
--...