Consider the setting and data of Exercise 3. (a) Use hand calculations to conduct the Kruskal-Wallis test at level α = 0.05, stating any assumptions needed for its validity. (Hint. There are no ties...

1 answer below »

Consider the setting and data of Exercise 3.


(a) Use hand calculations to conduct the Kruskal-Wallis test at level α = 0.05, stating any assumptions needed for its validity. (Hint. There are no ties in this data set. You may use attach(sl); ranks=rank(values); rms=by(ranks, ind, mean) to compute the rank averages.)


(b) Use the R command kruskal.test(sl$values∼sl$ind) to conduct the Kruskal-Wallis test. Report the value of the test statistic, the p-value, and whether or not the null hypothesis is rejected at level α = 0.05.


Exercise 3


Four different concentrations of ethanol are compared at level α = 0.05 for their effect on sleep time. Each concentration was given to a sample of 5 rats and the REM (rapid eye movement) sleep time for each rat was recorded (SleepRem.txt). Do the four concentrations differ in terms of their effect on REM sleep time?


(a) State the relevant null and alternative hypotheses for answering this question, and use hand calculations to conduct the ANOVA F test at level of significance 0.05. State any assumptions needed for the validity of this test procedure. (Hint. You may use the sum


(b) Import the data into the R data frame sl, and use the R command anova(aov(sl$values∼sl$ind)) to conduct the ANOVA F test. Give the ANOVA table, stating the p-value, and the outcome of the test at level of significance 0.05.


(c) Use R commands to test the assumptions of equal variances and normality. Report the p-values from the two tests and the conclusions reached. Next, construct a boxplot and the normal Q-Q plot for the residuals, and comment on the validity of the normality assumption on the basis of these plots.


Answered Same DayDec 25, 2021

Answer To: Consider the setting and data of Exercise 3. (a) Use hand calculations to conduct the Kruskal-Wallis...

David answered on Dec 25 2021
124 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here