Re: [R] From THE R BOOK -> Warning: In eval(expr, envir, enclos) : non-integer #successes in a binomial glm!

2010-03-30 Thread Robert A LaBudde
At 12:08 PM 3/30/2010, David Winsemius wrote: I don't understand this perspective. You bought Crowley's book so he is in some minor sense in debt to you. Why should you think it is more appropriate to send your message out to thousands of readers of r- help around the world (some of whom have

Re: [R] From THE R BOOK -> Warning: In eval(expr, envir, enclos) : non-integer #successes in a binomial glm!

2010-03-30 Thread Graham Smith
Corrado > I am afraid not the paragraph's title is a bit of a give away: > > Proportion Data and Binomial Errors > > The sentence reads: > " are dealt with by using a generalised linear model with a binomial > error structure". > > with the example: > > glm(y~x,family=binomial) > > You

Re: [R] From THE R BOOK -> Warning: In eval(expr, envir, enclos) : non-integer #successes in a binomial glm!

2010-03-30 Thread Berwin A Turlach
G'day all, On Tue, 30 Mar 2010 16:19:46 +0100 Corrado wrote: > David Winsemius wrote: > > A) It is not an error, only a warning. Wouldn't it seem reasonable > > to issue such a warning if you have data that violates the > > distributional assumptions? > I am not questioning the approach. I am on

Re: [R] From THE R BOOK -> Warning: In eval(expr, envir, enclos) : non-integer #successes in a binomial glm!

2010-03-30 Thread David Winsemius
On Mar 30, 2010, at 11:19 AM, Corrado wrote: Dear David, David Winsemius wrote: A) It is not an error, only a warning. Wouldn't it seem reasonable to issue such a warning if you have data that violates the distributional assumptions? I am not questioning the approach. I am only trying to u

Re: [R] From THE R BOOK -> Warning: In eval(expr, envir, enclos) : non-integer #successes in a binomial glm!

2010-03-30 Thread Corrado
ou can check at page 514/515. Rubén Roa wrote: -Mensaje original- De: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] En nombre de Corrado Enviado el: martes, 30 de marzo de 2010 16:52 Para: r-help@r-project.org Asunto: [R] From THE R BOOK -> Warning: In eval(expr, env

Re: [R] From THE R BOOK -> Warning: In eval(expr, envir, enclos) : non-integer #successes in a binomial glm!

2010-03-30 Thread Corrado
Dear David, David Winsemius wrote: A) It is not an error, only a warning. Wouldn't it seem reasonable to issue such a warning if you have data that violates the distributional assumptions? I am not questioning the approach. I am only trying to understand why a (rather expensive) source of docu

Re: [R] From THE R BOOK -> Warning: In eval(expr, envir, enclos) : non-integer #successes in a binomial glm!

2010-03-30 Thread Yihui Xie
In a Binomial GLM, typically y is a factor with two levels (indicating success/failure) instead of a numeric vector on [0, 1]. Perhaps the description in the book is not so clear. You should interpret "data on proportions" as the observations from a Binomial distribution (rather than we observed so

Re: [R] From THE R BOOK -> Warning: In eval(expr, envir, enclos) : non-integer #successes in a binomial glm!

2010-03-30 Thread Rubén Roa
-Mensaje original- De: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] En nombre de Corrado Enviado el: martes, 30 de marzo de 2010 16:52 Para: r-help@r-project.org Asunto: [R] From THE R BOOK -> Warning: In eval(expr, envir, enclos) : non-integer #successes i

Re: [R] From THE R BOOK -> Warning: In eval(expr, envir, enclos) : non-integer #successes in a binomial glm!

2010-03-30 Thread David Winsemius
A) It is not an error, only a warning. Wouldn't it seem reasonable to issue such a warning if you have data that violates the distributional assumptions? B) You did not include any of the data C) Wouldn't this be more appropriate to the author of the book if this is "exactly what was sugge

[R] From THE R BOOK -> Warning: In eval(expr, envir, enclos) : non-integer #successes in a binomial glm!

2010-03-30 Thread Corrado
Dear friends, I am testing glm as at page 514/515 of THE R BOOK by M.Crawley, that is on proportion data. I use glm(y~x1+,family=binomial) y is a proportion in (0,1), and x is a real number. I get the error: In eval(expr, envir, enclos) : non-integer #successes in a binomial glm! But that