wonko at posteo.de
2012-Feb-09 12:32 UTC
[R] GLM - guess the distribution of the response variable
Dear all, I have question regarding GLMs: I have a discrete response variable and a continuous explaining variable. Like this: http://www.myimg.de/?img=example1db0f.jpg I want to use a GLM to investigate. I have to specify the "familiy of the distribution of the response variable" - or, maybe more precise, the "family of the distribution of the residuals of the response variable" (the mean of the response should be explained by the deterministic model part of the GLM, as far as I understood). How do I know the distribution family of the response? OK - its needs to be a discrete distribution, but there are Poisson, Binomial, Neg. Binomial. Any ideas? Many thanks, wonko
David Winsemius
2012-Feb-09 17:06 UTC
[R] GLM - guess the distribution of the response variable
On Feb 9, 2012, at 7:32 AM, wonko at posteo.de wrote:> Dear all, > > I have question regarding GLMs: > I have a discrete response variable and a continuous explaining > variable. Like this: > http://www.myimg.de/?img=example1db0f.jpg > > I want to use a GLM to investigate. I have to specify the "familiy > of the distribution of the response variable" - or, maybe more > precise, the "family of the distribution of the residuals of the > response variable" (the mean of the response should be explained by > the deterministic model part of the GLM, as far as I understood). > > How do I know the distribution family of the response? OK - its > needs to be a discrete distribution, but there are Poisson, > Binomial, Neg. Binomial.Is this homework, ... in which case please read the Posting Guide. -- David Winsemius, MD West Hartford, CT
Bert Gunter
2012-Feb-09 17:39 UTC
[R] GLM - guess the distribution of the response variable
Below. -- Bert On Thu, Feb 9, 2012 at 9:06 AM, David Winsemius <dwinsemius at comcast.net> wrote:> > On Feb 9, 2012, at 7:32 AM, wonko at posteo.de wrote: > >> Dear all, >> >> I have question regarding GLMs: >> I have a discrete response variable and a continuous explaining variable. >> Like this: >> http://www.myimg.de/?img=example1db0f.jpg >> >> I want to use a GLM to investigate. I have to specify the "familiy of the >> distribution of the response variable" - or, maybe more precise, the "family >> of the distribution of the residuals of the response variable" (the mean of >> the response should be explained by the deterministic model part of the GLM, >> as far as I understood). >> >> How do I know the distribution family of the response? OK - its needs to >> be a discrete distribution, but there are Poisson, Binomial, Neg. Binomial. > > > Is this homework, ... ?in which case please read the Posting Guide.-- and if not, please do your homework by doing some reading and/or consulting your local statistician.> > -- > David Winsemius, MD > West Hartford, CT > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- Bert Gunter Genentech Nonclinical Biostatistics Internal Contact Info: Phone: 467-7374 Website: http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm