In: Statistics and Probability
construct an AOV table including expected mean squares in R studio
A study was designed to evaluate the effectiveness of new treatments to reduce the systolic blood pressure of patients determined to have high blood pressure. Three drugs were selected for evaluation. There are numerous nondrug treatments for reducing blood pressure including various combinations of a controlled diet, exercise programs, biofeedback and so on. the researchers randomly selected three non drug treatments for examination in the study. The age of the patient often may hinder the effectiveness of any treatment. Thus, patients with high BP were divided into two age groups. A group of 54 patients was divided into the two age groups and then randomly assigned to a combination of one of the three drugs and one of the three non drug treatments. After patients had participated in the program for 2 months, the reduction so their systolic blood pressure readings were recorded.
This is nested, drug is fixed and non drug and age are random
Reduction | Drug | Nondrug | Age |
33 | D1 | ND1 | A1 |
34 | D1 | ND1 | A1 |
35 | D1 | ND1 | A1 |
46 | D2 | ND1 | A1 |
45 | D2 | ND1 | A1 |
46 | D2 | ND1 | A1 |
38 | D3 | ND1 | A1 |
34 | D3 | ND1 | A1 |
37 | D3 | ND1 | A1 |
37 | D1 | ND2 | A1 |
38 | D1 | ND2 | A1 |
36 | D1 | ND2 | A1 |
44 | D2 | ND2 | A1 |
48 | D2 | ND2 | A1 |
49 | D2 | ND2 | A1 |
45 | D3 | ND2 | A1 |
45 | D3 | ND2 | A1 |
44 | D3 | ND2 | A1 |
41 | D1 | ND3 | A1 |
42 | D1 | ND3 | A1 |
39 | D1 | ND3 | A1 |
43 | D2 | ND3 | A1 |
44 | D2 | ND3 | A1 |
45 | D2 | ND3 | A1 |
36 | D3 | ND3 | A1 |
37 | D3 | ND3 | A1 |
35 | D3 | ND3 | A1 |
34 | D1 | ND1 | A2 |
33 | D1 | ND1 | A2 |
38 | D1 | ND1 | A2 |
47 | D2 | ND1 | A2 |
49 | D2 | ND1 | A2 |
45 | D2 | ND1 | A2 |
36 | D3 | ND1 | A2 |
39 | D3 | ND1 | A2 |
35 | D3 | ND1 | A2 |
48 | D1 | ND2 | A2 |
46 | D1 | ND2 | A2 |
45 | D1 | ND2 | A2 |
44 | D2 | ND2 | A2 |
48 | D2 | ND2 | A2 |
46 | D2 | ND2 | A2 |
46 | D3 | ND2 | A2 |
47 | D3 | ND2 | A2 |
44 | D3 | ND2 | A2 |
44 | D1 | ND3 | A2 |
46 | D1 | ND3 | A2 |
49 | D1 | ND3 | A2 |
44 | D2 | ND3 | A2 |
46 | D2 | ND3 | A2 |
41 | D2 | ND3 | A2 |
38 | D3 | ND3 | A2 |
36 | D3 | ND3 | A2 |
35 | D3 | ND3 | A2 |