How can I use a prop.test and fisher.test for this Q by using R programming? 1.
ID: 3304965 • Letter: H
Question
How can I use a prop.test and fisher.test for this Q by using R programming?
1. Data from an article by Robert Rutledge in Annals of Surgery in 1993 Survived 1781 1443 Died 135 47 No seat belt Seat belt Determine whetherwearing a seatbelt has an effect on survival. Interpretyour results- should you wear your seat belt? 2. Compare the approximate and actualtests for difference in 2 proportions using Fatal attack 18 No attaclk 10845 10933 Nonfatal attack Placebo Aspirin Look at only those groups that had an attack Look at attacks of any type versus no attack (approximate test only) b.Explanation / Answer
prop.test
This cammansd is used to find proportion test of testing hypothesis .
Firsy we need to load MASS library
x= your data
Put your data in x vector
This command give you result of proportion test .
fisher.test
Fisher's exact test is used for testing the null of independence of rows and columns in a contingency table with fixed marginals.
x= two-dimensional contingency table in matrix form using matrix command .
Then put this value in Fisher.test you can derectully get fisher exact test .
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.