Re: [R] Glm and user defined variance functions

2012-03-14 Thread Ben Bolker
Craig Lyon rogers.com> writes: > > Hi, > > I am trying to run a generalized linear regression using a negative binomial > error distribution. However, I want to use an overdispersion parameter that > varies (dependent on the length of a stretch of road) so glm.nb will not do. > > >From what I'

[R] Glm and user defined variance functions

2012-03-14 Thread Craig Lyon
Hi, I am trying to run a generalized linear regression using a negative binomial error distribution. However, I want to use an overdispersion parameter that varies (dependent on the length of a stretch of road) so glm.nb will not do. >From what I've read I should be able to do this using GLM by s