Guest User

Untitled

a guest
Dec 13th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. y <- c(5, 12, 25, 6, 10, 8, 4, 3, 0, 0, 1, 0, 0, 0, 0, 0)
  2. fac <- rep(LETTERS[1:4], each = 4)
  3. library(MASS)
  4. model <- glm.nb(y ~ fac)
  5. summary(model)
  6.  
  7. Coefficients:
  8. Estimate Std. Error z value Pr(>|z|)
  9. (Intercept) 2.4849 0.2749 9.041 < 2e-16 ***
  10. facB -0.6523 0.4126 -1.581 0.113899
  11. facC -3.8712 1.0631 -3.641 0.000271 ***
  12. facD -21.7875 4713.3084 -0.005 0.996312
  13. ---
  14. Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
  15.  
  16. (Dispersion parameter for Negative Binomial(4.5692) family taken to be 1)
Add Comment
Please, Sign In to add comment