search for: gm2sl

Displaying 1 result from an estimated 1 matches for "gm2sl".

Did you mean: gm1sl
2009 Nov 20
1
different results across versions for glmer/lmer with the quasi-poisson or quasi-binomial families: the lattest version might not be accurate...
...quasipoisson: library(lme4) set.seed(1) period<-rnorm(1000) herd<-rep(1:50,eac=20) herd.effect<-rnorm(50) toto<-rbinom(1000,1,exp(period+herd.effect[herd])/(1+exp(period+herd.effect[herd]))) gm2s <- lmer(toto ~ period + (1 | herd), family = quasibinomial) summary(gm2s) gm2sL <- lmer(toto ~ period + (1 | herd), family = binomial) summary(gm2sL) #now poisson with similar data: #essai avec jeu de données simulé: set.seed(2) toto<-rpois(1000,exp(period+herd.effect[herd])) gm1s <- lmer(toto ~ period + (1 | herd), family = quasipoisson) summary(gm1s) g...