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.

296 11. COUNTING AND CLASSIFICATIONR code11.28exp( coef(m10.8)[1] )a34.8And by no small coincidence, this is the same value you get by just empirically averaging theTotal.Tools column.Adding a predictor is as you’d expect by now, just add terms to the second line. Forexample, here is the second model we’d like to fit, using log-population as a predictor:And the code to fit it:n i ∼ Poisson(λ i )log λ i = α + β P log P iR code11.29m10.9

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

Saved successfully!

Ooh no, something went wrong!