Asn3.pdf - Stat 359 Assignment 3 1 In a study examining smoking and lung cancer a random sample of men between the ages of 55 and 60 was obtained The

Asn3.pdf - Stat 359 Assignment 3 1 In a study examining...

This preview shows page 1 - 2 out of 2 pages.

Stat 359 Assignment 3 1. In a study examining smoking and lung cancer, a random sample of men between the agesof 55 and 60 was obtained.The smoking and disease status of each sampled subject wasascertained. For each subject, a ’1’ is assigned if the subject had lung cancer (case) and a ’0’if not. Similarly, a ’1’ indicates that a subject is a smoker and a ’0’ indicates a nonsmoker.The data are found in the Excel file ‘LungCancer’.Read the data into R, and use table() function to produce a contingency table summa-rizing these data.Assuming that there is no association between smoking and lung cancer, compute a tableof ‘expected’ counts.By hand, compute the observed value of the test statistic for testing association betweenlung cancer and smoking.Assuming there is no association, what is the distribution of the test statistic?Using R, compute the p-value for a test of association, and give adetailedconclusionbased on the p-value and a comparison of the tables observed and expected counts.
Image of page 1
Image of page 2

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture