Hi,
I have to use one of the statistical tests such as T-test (independent & paired) one way ANOVA, Mann-Whitney U (Wilcoxon rank-sum test), Wilcoxon signed-rank test, Kruskal-Wallis test, Chi-squared test, Fisher's exact test, McNemar's test, Spearman's or Pearson's correlation test in order to solve this question.
Please help me figure out the right statistical data to use for each of the two questions. I don't need the calculations.
Open the physical activity dataset (SPH2001 Physical activity.csv) in R Commander/R, and answer the questions that follow. This adapted dataset contains selected covariates and measurements from Caucasian subjects who were part of a study that examined effects of physical activity and other health behaviours on physiological measurements. Subjects were also randomly assigned to perform one of two activities (run or sit) for two minutes. The heart rates were measured at baseline, and again after performing the assigned activity. NA denotes missing values. Codebook: Variable Variable description Remarks name Age Age (in years) Numeric (integer) Height Height (in cm) Numeric (integer) Weight Weight (in kg) Numeric up to 1 decimal place Sex Sex of participant 1 (= Male); 2 (= Female) Activity Activity assigned 1 (= Run); 2 (= Sit) Smoker Regular smoker? 1 (= Yes); 2 (= No) Alcohol Regular alcohol drinker? 1 (= Yes); 2 (= No) Exercise Exercise frequency 1 (= High); 2 (= Moderate); 3 (= Low) pre_HR Baseline heart rate (in rate per minute) Numeric (integer) post HR Post-activity heart rate (in rate per minute) Numeric (integer)For each of the following questions, perform the appropriate statistical test at a 5% level of significance. Marks will be given for justifying the choice of test used. a) Is there a difference in baseline heart rates among people with different exercise frequencies? Explain your answers. (8 marks) b) Test the hypothesis that regular alcohol drinkers have a higher body mass index (BMI).Age Height Weight Sex Activity Smoker Alcohol Exercise pre_HR post_HR 20 163 55 2 2 2 2 70 119 18 185 90 2 2 3 80 140 19 169 68 2 2 2 2 58 58 18 165 63 2 2 2 2 84 84 18 155 49 2 2 2 2 99 92 20 173 70 N 64 126 20 182 85 2 2 60 56 18 158 51 2 2 N 68 84 19 160 49 2 N NO 2 3 80 72 20 180 75 2 2 65 82 18 180 77 2 2 2 N 47 136 20 188 87 2 50 90 18 164 54 2 NO NO 2 3 80 76 20 180 102 2 2 2 76 72 21 178 62 No N 2 3 70 74 19 166 50 2 2 3 76 132 20 175 57 2 2 2 72 115 21 180 80 2 NO N 80 80 19 182 98 N NO 76 150 22 151 42 2 2 2 3 85 130 23 186 87 2 49 83 19 190 82 No 2 2 76 73 19 165 48 2 2 2 2 3 83 84 20 172 53 2 2 3 72 136 20 173 64 2 2 2 2 NA NA 20 170 53.5 2 2 2 2 3 60 62