Question: PLEASE, SOLVE USING R There are many different diet plans that people try, but do they work? You will be examining a dataset where participants
PLEASE, SOLVE USING R
There are many different diet plans that people try, but do they work? You will be examining a dataset where participants tried one of two diet plans. The dataset includes information about their weight before starting, weight 6 weeks later and which plan was followed, as well as some demographic information
a. Did people lose weight, regardless of what plan? Visualize the data appropriately and conduct an appropriate test.
b. Was one plan more effective than the other? Visualize the data appropriately and conduct an appropriate test.
c. Write a methods sentence that describes your analyses, citing R as discussed.d. Write a results sentence that clearly reports your findings, for each of the tests you conducted.
| Person | gender | Age | Height | preWeight | Diet | weight6weeks |
| 1 | 0 | 22 | 159 | 58 | PlanA | 54.2 |
| 2 | 0 | 46 | 192 | 60 | PlanA | 54 |
| 3 | 0 | 55 | 170 | 64 | PlanA | 63.3 |
| 4 | 0 | 33 | 171 | 64 | PlanA | 61.1 |
| 5 | 0 | 50 | 170 | 65 | PlanA | 62.2 |
| 6 | 0 | 50 | 201 | 66 | PlanA | 64 |
| 7 | 0 | 37 | 174 | 67 | PlanA | 65 |
| 8 | 0 | 28 | 176 | 69 | PlanA | 60.5 |
| 9 | 0 | 28 | 165 | 70 | PlanA | 68.1 |
| 10 | 0 | 45 | 165 | 70 | PlanA | 66.9 |
| 11 | 0 | 60 | 173 | 72 | PlanA | 70.5 |
| 12 | 0 | 48 | 156 | 72 | PlanA | 69 |
| 13 | 0 | 41 | 163 | 72 | PlanA | 68.4 |
| 14 | 0 | 37 | 167 | 82 | PlanA | 81.1 |
| 52 | 0 | 51 | 165 | 60 | PlanC | 53 |
| 53 | 0 | 35 | 169 | 62 | PlanC | 56.4 |
| 54 | 0 | 21 | 159 | 64 | PlanC | 60.6 |
| 55 | 0 | 22 | 169 | 65 | PlanC | 58.2 |
| 56 | 0 | 36 | 160 | 66 | PlanC | 58.2 |
| 57 | 0 | 20 | 169 | 67 | PlanC | 61.6 |
| 58 | 0 | 35 | 163 | 67 | PlanC | 60.2 |
| 59 | 0 | 45 | 155 | 69 | PlanC | 61.8 |
| 60 | 0 | 58 | 141 | 70 | PlanC | 63 |
| 61 | 0 | 37 | 170 | 70 | PlanC | 62.7 |
| 62 | 0 | 31 | 170 | 72 | PlanC | 71.1 |
| 63 | 0 | 35 | 171 | 72 | PlanC | 64.4 |
| 64 | 0 | 56 | 171 | 73 | PlanC | 68.9 |
| 65 | 0 | 48 | 153 | 75 | PlanC | 68.7 |
| 66 | 0 | 41 | 157 | 76 | PlanC | 71 |
| 15 | 1 | 39 | 168 | 71 | PlanA | 71.6 |
| 16 | 1 | 31 | 158 | 72 | PlanA | 70.9 |
| 17 | 1 | 40 | 173 | 74 | PlanA | 69.5 |
| 18 | 1 | 50 | 160 | 78 | PlanA | 73.9 |
| 19 | 1 | 43 | 162 | 80 | PlanA | 71 |
| 20 | 1 | 25 | 165 | 80 | PlanA | 77.6 |
| 21 | 1 | 52 | 177 | 83 | PlanA | 79.1 |
| 22 | 1 | 42 | 166 | 85 | PlanA | 81.5 |
| 23 | 1 | 39 | 166 | 87 | PlanA | 81.9 |
| 24 | 1 | 40 | 190 | 88 | PlanA | 84.5 |
| 67 | 1 | 36 | 155 | 71 | PlanC | 68.5 |
| 68 | 1 | 47 | 179 | 73 | PlanC | 72.1 |
| 69 | 1 | 29 | 166 | 76 | PlanC | 72.5 |
| 70 | 1 | 37 | 173 | 78 | PlanC | 77.5 |
| 71 | 1 | 31 | 177 | 78 | PlanC | 75.2 |
| 72 | 1 | 26 | 179 | 78 | PlanC | 69.4 |
| 73 | 1 | 40 | 179 | 79 | PlanC | 74.5 |
| 74 | 1 | 35 | 183 | 83 | PlanC | 80.2 |
| 75 | 1 | 49 | 177 | 84 | PlanC | 79.9 |
| 76 | 1 | 28 | 164 | 85 | PlanC | 79.7 |
| 77 | 1 | 40 | 167 | 87 | PlanC | 77.8 |
| 78 | 1 | 51 | 175 | 88 | PlanC | 81.9 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
