11.07.2015 Views

Preface to First Edition - lib

Preface to First Edition - lib

Preface to First Edition - lib

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.

64 SIMPLE INFERENCEresiduals and an adjustment:√(njk − E jk ) 2 /E jk√(1 − nj·/n)(1 − n·k /n) .When the variables forming the contingency table are independent, theadjusted residuals are approximately normally distributed with mean zeroand standard deviation one. Write a general R function <strong>to</strong> calculate bothstandardised and adjusted residuals for any r × c contingency table andapply it <strong>to</strong> the pis<strong>to</strong>n ring data.Ex. 3.4 For the data in table rearrests estimate the difference betweenthe probability of being rearrested after being tried in an adult court andin a juvenile court, and find a 95% confidence interval for the populationdifference.© 2010 by Taylor and Francis Group, LLC

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

Saved successfully!

Ooh no, something went wrong!