Question: EXERCISE is given to youabove: Rows: It includes 40 individuals; the pulse of each of 40 people was taken, before and after running one mile.
EXERCISE is given to youabove: Rows: It includes 40 individuals; the pulse of each of 40 people was taken, before and after running one mile. Columns in order: The variables include their ID, their SEX where 1 represents male and 2 represents female, SMOKE where 0 means they dont smoke and 1 means they smoke, AGE showing the age of individuals, PULSE_1 showing the pre-exercise pulse, PULSE_2 showing the post-exercise pulse rate, and finally the last column NAME includes the names of the individuals participating in this study.
- Read the data into R or R-studio and report the summary of the data for all variables. R command to get the summary followed by output without the change of format should be pasted in your document.
- Using the proper statistical test, compare the pulse rate of individuals before and after running one mile. The test should be conducted in R.
- Explain why this test (name the test you are using) was being chosen.
- Write down the null and alternative hypothesis to see whether there is a difference between the average pulse rates before and after running one mile. ( = 0.05)
-
- Using the appropriate R code, perform the test (the code used to test this hypothesis needs to be included in your output)
-
- Pasting the output R gave you here, explain what your decision is regarding this hypothesis. Also, write down the interpretation/conclusion in one sentence.
- Testing for the effect of SEX and SMOKE and their interaction effect, perform a test to see whether there is a difference in the mean of PULSE_2 (the post-exercise pulse rate) based on individuals sex and whether or not they smoke.
- What test should you use? Explain why this test was being chosen.
- Write down the null and alternative hypotheses for the tests of main and interaction effects. ( = 0.05)
-
- Using the appropriate R code, perform the test (the code used to test this hypothesis needs to be included in your output).
-
- Pasting the output R gave you here, explain what your decisions are regarding the three hypotheses you tested for. You need to explain what part of the output led you to the conclusion you made. Also, write own the interpretation for each hypothesis in one sentence.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
