Question: Please solve in R. Data in the File required is in the table below Particpant Class Group GroupName Q9 Overall 1 1 1 Chocolate 3
Please solve in R. Data in the File required is in the table below

| Particpant | Class | Group | GroupName | Q9 | Overall |
| 1 | 1 | 1 | Chocolate | 3 | 2.44 |
| 2 | 1 | 1 | Chocolate | 3 | 2.56 |
| 3 | 1 | 1 | Chocolate | 5 | 4.33 |
| 4 | 1 | 1 | Chocolate | 4 | 4.56 |
| 5 | 1 | 1 | Chocolate | 5 | 4.56 |
| 6 | 1 | 1 | Chocolate | 5 | 4.22 |
| 7 | 1 | 1 | Chocolate | 3 | 3.56 |
| 8 | 1 | 1 | Chocolate | 5 | 4.67 |
| 9 | 1 | 1 | Chocolate | 4 | 3.67 |
| 10 | 1 | 1 | Chocolate | 4 | 4.22 |
5. A study conducted by Youmans and Jee3 looked at students who took a research methods class in psychology. Two lecture sections of the same course were taught by the same instructor. Students in each lecture section were required to register in one of two Friday afternoon discussion sections, or a tutorial. During the ninth week of instruction, all students were asked to fill out an informal midsemester evaluation in their Friday afternoon discussion session. In half of the Friday afternoon discussion sections, the experimenter (not the professor/instructor!) passed around a bag containing small bars of chocolate that he simply had 'left-over' and 'wanted to get rid of' so that students would not think the chocolate was a gift from their professor/instructor. The evaluation was a survey that contained nine questions. For each question the student provided a rating from 1 (very poor) to 5 (excellent). Question 9 posed the following: "Compared to other instructors you have had at this university, this instrutor is:" 1 (very poor) to 5 (excellent) Compliments to the authors, they have provided me with the data in this particular study. In the file you will find the raw data providing the student responses for Question 9 (Q9) and the overall average response for Questions 1 through 9 (Overall) for each student. a. Pertaining to Question 9: Do these data suggest there is a treatment effect? Test the existance of a treatment effect using a permutation test. If a treatment effect is discovered, explain its meaning in the context of these data. (You will have to carefully consider "what a treatment effect" is in this scenario.) b. Consider the variable Overall. Is there a treatment effect with respect to the professor's overall rating as a teacher? Apply the t-test to these data. Interpret the meaning of the P-value. c. Consider the test suggested in part (a). Why would a t-test not be a recommended statistical method to carry out the test in part (a)? Explain your answer in a few sentences
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
