Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. require(lme4)
  2. GLMM <- glmer(number_of_channels ~ activity + (1 | project), family = 'poisson') # random intercept
  3.  
  4. GLMM <- glmer(number_of_channels ~ activity + (0 + activity | project), family = 'poisson') # random slope
  5. GLMM <- glmer(number_of_channels ~ activity + (activity | project), family = 'poisson') # both
  6. GLMM <- glmer.nb(number_of_channels ~ activity + (1 | project)) # random intercept, negative binomial
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement