Question

In: Statistics and Probability

USE R AND SHOW CODES!! 1.a. An investigator is interested in comparing the cardiovascular fitness of...

USE R AND SHOW CODES!!

1.a. An investigator is interested in comparing the cardiovascular fitness of elite runners on three different training courses. course one is at, course 2 has graded inclines, and

course three includes steep inclines, Ten runners were involved for each course. Heart rates measured on each course are as the following table

Course 1 Course 2 Course 3

132 135 138

143 148 148

135 138 141

128 131 139

141 141 150

150 156 161

131 134 138

150 156 162

142 145 151

139 165 160

Is there a significant difference in the mean heart rates of runners on three courses? alpha= 0:05

1.b. The following data is collected on the enzyme activity of MPI (mannose-6-phosphate isomerase) and MPI genotypes separated for male and female.

a. Is there any significant difference between male and female?

b. Is there any significant difference between genotypes?

c. Is there any interaction between sex and genotypes?

DATA

Genotype Female Male

FF 2.838 1.884

4.216 2.889

4.198 2.283

4.939 3.486

FS 3.55 2.396

4.556 2.956

3.087 3.105

1.943 2.649

SS 3.620 2.801

3.079 3.421

3.586 4.275

2.669 3.110

Solutions

Expert Solution

1.a.

One-way ANOVA is used to compare means from more than two groups of one variable. The null hypothesis states all the group means are equal vs the alternative hypothesis that at least one of the group means is different from the others.

Rcode :

X <- c('Course 1','Course 1','Course 1','Course 1','Course 1','Course 1','Course 1','Course 1','Course 1','Course 1','Course 2','Course 2','Course 2','Course 2','Course 2','Course 2','Course 2','Course 2','Course 2','Course 2','Course 3','Course 3','Course 3','Course 3','Course 3','Course 3','Course 3','Course 3','Course 3','Course 3')
Y <- c(132,143,135,128,141,150,131,150,142,139,135,148,138,131,141,156,134,156,145,165,138,148,141,139,150,161,138,162,151,160)
data.df <- data.frame(X,Y)

anova_one_way <- aov(Y ~ X, data = data.df)
summary(anova_one_way)

Note : In the screenshot below , p value is greater than 0.05 as per the alpha chosen therefore we fail to reject the null hypothesis of non-significance between the groups.

Therefore, there seems to be no statistically significant difference in the mean heart rates of runners on three courses.

1.b.

This part can be solved by using two way anova. It is used to analyze the effect of two grouping variables on a response variable simultaneously. Here the response variable is Enzyme Activity recorded and grouping variables are Genotype and Sex. Two way anova models the main effects for both the group variables and also estimates the interaction effect of the two group variables.

Rcode:

####### two way anova ###################
library(Rmisc)

Genotype <- c('FF','FF','FF','FF','FF','FF','FF','FF','FS','FS','FS','FS','FS','FS','FS','FS','SS','SS','SS','SS','SS','SS','SS','SS')
Sex <- c('Female','Female','Female','Female','Male','Male','Male','Male','Female','Female','Female','Female','Male','Male','Male','Male','Female','Female','Female','Female','Male','Male','Male','Male')
Act <- c(2.838,4.216,4.198,4.939,1.884,2.889,2.283,3.486,3.55,4.556,3.087,1.943,2.396,2.956,3.105,2.649,3.62,3.079,3.586,2.669,2.801,3.421,4.275,3.11)

data.df <- data.frame(Genotype,Sex,Act)

aov2way <- aov(Act~as.factor(Genotype)*as.factor(Sex),data=
data.df)
summary(aov2way)

TukeyHSD(aov2way)

Note : As per the output below, only sex came out as a significant variable (pvalue < 0.05) whereas interaction also is insignificant.

so for a) Yes

b) No

c) No

To further evaluate the differences between multiple values of these groups, TukeyHSD test can be used and the output is shown below to the summary ouput and it can be seen that none of the multiple comparisons come as significant other tan the sex variable since the pvalue for only sex variable is less than 0.05.

Output :



Related Solutions

USE R AND SHOW CODES!! 1.a. There is a theorem that the ratios of blood types...
USE R AND SHOW CODES!! 1.a. There is a theorem that the ratios of blood types O, A, B and AB are 49:38:9:4, respectively. A research team, investigating a small community and obtained the following frequencies of blood type. Blood type Blood Type O A B AB Frequency 87 59 20 4 Test the hypothesis that the proportions in this community do not differ significantly from those in the general theorem. 1.b. The severity of participants' migraines is clinically assessed....
USE R AND SHOW CODES!! 1.a. The following data represent the birth weights of siblings born...
USE R AND SHOW CODES!! 1.a. The following data represent the birth weights of siblings born to six different mothers Data Birth weight Mother Child 1 Child 2 Child 3 Child 4 1 6.4 6.9 6.7 7.1 2 8.5 7.8 7.8 8.3 3 7.6 8.7 9.9 8.2 4 5.3 6.7 7.5 6.4 5 6.2 5.6 6.4 5.5 6 7 7.8 8.6 6.6 Use an appropriate method to test if there is a significant difference in the birth weight of siblings....
USE R AND SHOW CODES 2. The following data were collected in a multisite observational study...
USE R AND SHOW CODES 2. The following data were collected in a multisite observational study of medical effectiveness in Type II diabetes. These sites were involved: a healthy maintenance organization (HMO), a university teaching hospital (UTH), and an independent practice assumption (IPA). The following data display the treatment regimens of patients measured at baseline by site. Use the data to test that no difference in treatment regimens across sites. (in addition, calculate the expected frequency for each cell.)                                                              ...
Stet by step in R and attach R file and R codes too - Thanks Use...
Stet by step in R and attach R file and R codes too - Thanks Use one of the real-world example data sets from R (not previously used in the R practice assignment) or a dataset you have found, and at least two of the tests and R functions covered in the practice assignment to conduct a hypothesis test then report your findings and give proper conclusion(s). Use the following supporting materials for R syntax, data sets and tools, along...
USE R AND SHOW CODES!! 3.a. In 1988, 71% of 15-44 year old women who have...
USE R AND SHOW CODES!! 3.a. In 1988, 71% of 15-44 year old women who have ever been married have used some form of contraception. What is the probability that, in a sample of 200 women in these childbearing years, fewer than 120 of them have used some form of contraception? 3.b. About 1 percent of women have breast cancer. A cancer screening method can detect 80 percent of genuine cancers with a false alarm rate of 10 percent. What...
1) Show that if A is an open set in R and k ∈ R \...
1) Show that if A is an open set in R and k ∈ R \ {0}, then the set kA = {ka | a ∈ A} is open.
Please Use R studio to answer the question. This is the Statistics section of Comparing Groups....
Please Use R studio to answer the question. This is the Statistics section of Comparing Groups. One month before the election, a poll of 630 randomly selected votes showed 54% planning to vote for a certain candidate. A week later, it became known that he had had an extramarital affair, and a new poll showed only 51% of 1010 voters supporting him. Do these results indicate a decrease in voter support fo his candidacy? a) Test an appropriate hypothesis as...
use r programming, details on the codes please. Consider an urn with 10 balls inside, 7...
use r programming, details on the codes please. Consider an urn with 10 balls inside, 7 of which are red and 3 of which are green. Select 3 balls successively from the urn. Let A = {1 st ball is red}, B = {2 nd ball is red}, and C = {3 rd ball is red}. Then P(all 3 balls are red) = P(A ∩ B ∩ C)      a) Calculate the Probability with R? (1)      b) Also, what is the...
Let k ≥ 2. Use that R (the real numbers) is complete to show R^k is...
Let k ≥ 2. Use that R (the real numbers) is complete to show R^k is complete.
Please use R or Rstudio for this exercise and show everything, including the R output. Pay...
Please use R or Rstudio for this exercise and show everything, including the R output. Pay attention in everything in Bold, please. " The quality of Pinot Noir wine is thought to be related to the properties of clarity, aroma, body, flavor, and oakiness. Data for 38 wines are given in stat5_prob1. (a) Fit a multiple linear regression model relating wine quality to these regressors. (b) Construct the ANOVA table. (c) Test for the significance of the regression in a...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT