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.

SUMMARY 63R> mcnemar.test(rearrests, correct = FALSE)McNemar's Chi-squared testdata: rearrestsMcNemar's chi-squared = 62.8882, df = 1, p-value =2.188e-15Figure 3.12R output of McNemar’s test for the rearrests data.R> binom.test(rearrests[2], n = sum(rearrests[c(2,3)]))Exact binomial testdata: rearrests[2] and sum(rearrests[c(2, 3)])number of successes = 290, number of trials = 805,p-value = 1.918e-1595 percent confidence interval:0.3270278 0.3944969sample estimates:probability of success0.3602484Figure 3.13R output of an exact version of McNemar’s test for the rearrestsdata computed via a binomial test.3.4 SummarySignificance tests are widely used and they can easily be applied using thecorresponding functions in R. But they often need <strong>to</strong> be accompanied by somegraphical material <strong>to</strong> aid in interpretation and <strong>to</strong> assess whether assumptionsare met. In addition, p-values are never as useful as confidence intervals.ExercisesEx. 3.1 After the students had made the estimates of the width of the lecturehall the room width was accurately measured and found <strong>to</strong> be 13.1 metres(43.0 feet). Use this additional information <strong>to</strong> determine which of the twotypes of estimates was more precise.Ex. 3.2 For the mortality and water hardness data calculate the correlationbetween the two variables in each region, north and south.Ex. 3.3 The standardised residuals calculated for the pis<strong>to</strong>n ring data are notentirely satisfac<strong>to</strong>ry for the reasons given in the text. An alternative residualsuggested by Haberman (1973) is defined as the ratio of the standardised© 2010 by Taylor and Francis Group, LLC

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

Saved successfully!

Ooh no, something went wrong!