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