Question

In: Statistics and Probability

construct an AOV table including expected mean squares in R studio A study was designed to...

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

Solutions

Expert Solution

R code and explanation is given below


Related Solutions

Perform the following tasks on R Studio/R Construct a function called conv3 which inputs a measurement...
Perform the following tasks on R Studio/R Construct a function called conv3 which inputs a measurement in centimeters and outputs the corresponding measurement in inches. However, if a negative value is entered as an input, no conversion of unit is done and an error message is printed instead.
Need To Do this in R Studio...Here are the Instruction steps: 1. Using the 1:n construct,...
Need To Do this in R Studio...Here are the Instruction steps: 1. Using the 1:n construct, create the sequence 4,8,12, ..., 48. 2. Similarly, create the sequence 0,5,10,15, ..., 100. 3. Using a for() loop and the print() function, print the values 2,3,4,..., 7. 4. Using a for() loop and the print() function, print the values 8,11,14, ..., 26. 5. Create a vector with a length of 10. Then, using a for() loop, assign the values 3,6,9, ..., 30. to...
Perform the following tasks on R Studio Construct a function called conv1 which inputs a measurement...
Perform the following tasks on R Studio Construct a function called conv1 which inputs a measurement in centimeters and outputs the corresponding measurement in inches and construct another function called conv2 which inputs a measurement in centimeters and outputs the corresponding measurements in inches, feet, and meters
The dataset ’anorexia’ in the MASS package in R-Studio contains data for an anorexia study. In...
The dataset ’anorexia’ in the MASS package in R-Studio contains data for an anorexia study. In the study, three treatments (Treat) were applied to groups of young female anorexia patients, and their weights before (Prewt) and after (Postwt) treatment were recorded. The three treatments adminstered were no treatment (Cont), Cognitive Behavioural treatment (CBT), and family treatment (FT). Determine at the 5% significance level if there is a difference in mean weight gain between those receiving no treatment and those receiving...
Use R studio to answer the following. A study was carried out to investigate the variation...
Use R studio to answer the following. A study was carried out to investigate the variation of rainbow trout weights in a certain creek. The weights (in kilograms) of 10 randomly selected fish are listed below:       0.78, 0.45, 0.35, 0.76, 0.57, 0.42, 0.33, 0.68, 0.66, 0.42 Assume that the population is approximately normally distributed.  Hint: make a vector to enter the weight data into R, e.g.: > wt = c(0.78, ..., 0.42) Find the 90% confidence interval for the unknown population...
The dataset ’anorexia’ in the MASS package in R-Studio contains data for an anorexia study. In...
The dataset ’anorexia’ in the MASS package in R-Studio contains data for an anorexia study. In the study, three treat- ments (Treat) were applied to groups of young female anorexia patients, and their weights before (Prewt) and after (Postwt) treatment were recorded. The three treatments adminstered were no treatment (Cont), Cognitive Behavioural treatment (CBT), and family treatment (FT). Determine at the 5% significance level if there is a difference in mean weight gain between those receiving no treatment and those...
R-Studio; Statistics The data set in the table considers information on the spread of prostate cancer...
R-Studio; Statistics The data set in the table considers information on the spread of prostate cancer to the lymph nodes for 53 patients. For a sample of prostate cancer patients, a set of possible predictor variables were measured before surgery to determine if the lymph nodes were compromised. Subsequently, the patient underwent surgery and the status of his lymph nodes was determined. The data set contains 53 observations of 7 variables: id: identifiers for each subject in the study. ssln:...
R studio: Show detailed working, including appropriate mathematical notation for each question. For most questions this...
R studio: Show detailed working, including appropriate mathematical notation for each question. For most questions this will involve showing your working from R, (e.g. cut-and-paste commands and output from an R session). The probability of a student owning a cat is known to be 0.44; and the probability of a student owning a dog is known to be 0.54. If the probability of owning both is known to be 0.36, calculate: (a) the probability of not owning a dog (b)...
2. The dataset ’anorexia’ in the MASS package in R-Studio contains data for an anorexia study....
2. The dataset ’anorexia’ in the MASS package in R-Studio contains data for an anorexia study. In the study, three treatments (Treat) were applied to groups of young female anorexia patients, and their weights before (Prewt) and after (Postwt) treatment were recorded. The three treatments adminstered were no treatment (Cont), Cognitive Behavioural treatment (CBT), and family treatment (FT). Determine at the 5% significance level if Cognitive Behavioral treatment is effective in helping patients gain weight. Perform all necessary steps for...
Please Use R studio to answer this question NY Marathon 2013 the table below shows the...
Please Use R studio to answer this question NY Marathon 2013 the table below shows the winning times (in minutes) for men and women in the new york city marathon between 1978 and 2013. (the race was not run in 2012 because of superstorm sandy.) assuming that performances in the big apple resemble performances elsewhere, we can think of these data as a sample of performance in marathon competitions. Create a 90% confidence interval for the mean difference in winning...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT