11.07.2015 Views

statisticalrethinkin..

statisticalrethinkin..

statisticalrethinkin..

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.3. AKAIKE INFORMATION CRITERION 189where i indexes each observation (case), and each q i is just the likelihood of case i. e −2in front doesn’t do anything important. It’s there for historical reasons.You can compute the deviance for any model you’ve fit already in this book, just by usingthe MAP estimates to compute a log-probability of the observed data for each row. eseprobabilities are the q values. en you add these log-probabilities together and multiply by−2. In many cases, R automates these steps. Most of the standard model fitting functionssupport logLik, which will do the hard part: compute the sum of log-probabilities, usuallyknown as the log-likelihood of the data. For example:# fit model with lmm6.1

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

Saved successfully!

Ooh no, something went wrong!