> y<-cy<-c(15,16,17,0,20,50,0,11,60,12)
> x<-c(1,6,3,11,13,20,12,14,15,3)
> gamma<-glm(y~x,family=Gamma())
Error in eval(expr, envir, enclos) : Non-positive values not allowed for the 
gamma family
but if i change data of y is 
> y1<-c(15,16,17,12,20,50,51,11,60,12)  ###### doesn't have zero then I can run.
 
Gamma Distribution can run for y >= o ??
I would like to know, why?
 
Thand and Best regards,
Mathinee 
 
 

 

                
---------------------------------

 Meet the all-new My Yahoo! – Try it today! 
        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to