Guest User

Untitled

a guest
Apr 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. y = c(0,1,0,0,0,1)
  2. x1 = c(18, 12, 15, 13, 15, 16)
  3. x2 = c(1,0,0,2,1,1)
  4. data = cbind(y, x1, x2)
  5. model <- glm(y~x1+x2, family=Gamma, data=data.frame(data))
  6. Error in eval(expr, envir, enclos) : non-positive values not allowed for the 'gamma' family
Add Comment
Please, Sign In to add comment