11.07.2015 Views

statisticalrethinkin..

statisticalrethinkin..

statisticalrethinkin..

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

12.4. VARIABLE RATES: GAMMA-POISSON 329assume that every day in the data experienced one of two accident rates, either the no limitrate (presumably higher) or the limited rate (presumably lower). e gamma-Poisson model,in contrast, will instead assume that each day in the data experiences a different rate, drawnfrom a gamma distribution. However those days on which the speed limit was in effect willdraw from a different gamma distribution, with a different mean, than those on which therewas no limit.Here’s the code to fit both the plain Poisson and gamma-Poisson:m12.10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!