Re: [R] autocorrelation in count data

2010-11-23 Thread dave fournier
You can fit this model with AD Model Builder's random effects module. there is an example fitting a Poisson and negative binomial to the venerable polio data set with ar(1) random effects at http://admb-project.org/examples/count-data/negative-binomial-serially-correlated-counts A big

Re: [R] autocorrelation in count data

2010-11-19 Thread Kjetil Halvorsen
see http://onlinelibrary.wiley.com/doi/10./j.1467-9892.2010.00684.x/abstract kjetil On Fri, Nov 19, 2010 at 6:02 PM, wrote: > hello, > > I try to model traffic accidents with the following model: > > glm.nb(y~j+w+m+sf+b+ft,data=fr[]). the problem is that there exist > autocorrelation  in th

[R] autocorrelation in count data

2010-11-19 Thread sahin
hello, I try to model traffic accidents with the following model: glm.nb(y~j+w+m+sf+b+ft,data=fr[]). the problem is that there exist autocorrelation in the data. one possibility is to model traffic accidents with inar(1)-models. has anyone an idea how to change this model in order to abta