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 ages of 55 and 60 was obtained. The smoking and disease status of each sampled subject was ascertained. 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 table of ‘expected’ counts. By hand, compute the observed value of the test statistic for testing association between lung 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 a detailed conclusion based on the p-value and a comparison of the tables observed and expected counts.
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Fall '15
  • FAROUKNATHOO

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors