Displaying 1 result from an estimated 1 matches for "myglm3".
Did you mean:
mygam3
2006 Mar 08
1
Want to fit random intercept in logistic regression (testing lmer and glmmML)
...rnorm(N)
pi <- exp(eta)/(1+exp(eta))
myunif <- runif(N)
y <- ifelse(myunif < pi, 1, 0)
plot(x,y, main=bquote( eta[i] == .(A) + .(B) * x[i] + u[i]))
text ( 0.5*max(x), 0.5, expression( Prob( y[i] == 1) == frac( 1 , 1 +
exp(-eta[i] ))))
### Parameter estimates go to hell, as expected
myglm3 <- glm ( y ~ x, family=binomial(link="logit") )
summary(myglm3)
### Why doesn't quasibinomial 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,...