Question

In: Statistics and Probability

USE R AND SHOW CODES 2. The following data were collected in a multisite observational study...

USE R AND SHOW CODES

2. The following data were collected in a multisite observational study of medical effectiveness in Type II diabetes. These sites were involved: a healthy maintenance organization (HMO), a university teaching hospital (UTH), and an independent practice assumption (IPA). The following data display the treatment regimens of patients measured at baseline by site. Use the data to test that no difference in treatment regimens across sites. (in addition, calculate the expected frequency for each cell.)

                                                                 Treatment regimen

           Site                             Diet            oral Hypoglycemic           Insulin                Total  

           HMO                         294                         827                             579                     1700

           UTH                           132                         288                             352                      772

            IPA                            189                         516                             404                    1109

          Total                           615                       1631                            1335                    3581

Solutions

Expert Solution

The hypothesis being tested is:

H0: There is no difference in treatment regimens across sites

Ha: There is a difference in treatment regimens across sites

The R output is:

The R code is:

x <- matrix(c(294, 132, 189, 827, 288, 516, 579, 352, 404), nrow = 3)
chisq.test(x)

The expected frequencies are:

Col 1   Col 2   Col 3   Total  
Row 1 Observed   294 827 579 1700
Expected   291.96 774.28 633.76 1700.00
Row 2 Observed   132 288 352 772
Expected   132.58 351.61 287.80 772.00
Row 3 Observed   189 516 404 1109
Expected   190.46 505.10 413.44 1109.00
Total Observed   615 1631 1335 3581
Expected   615.00 1631.00 1335.00 3581.00

The p-value is 0.0000.

Since the p-value (0.0000) is less than the significance level (0.05), we can reject the null hypothesis.

Therefore, we can conclude that there is a difference in treatment regimens across sites.

Please give me a thumbs-up if this helps you out. Thank you!


Related Solutions

USE R AND SHOW CODES!! 1.a. The following data represent the birth weights of siblings born...
USE R AND SHOW CODES!! 1.a. The following data represent the birth weights of siblings born to six different mothers Data Birth weight Mother Child 1 Child 2 Child 3 Child 4 1 6.4 6.9 6.7 7.1 2 8.5 7.8 7.8 8.3 3 7.6 8.7 9.9 8.2 4 5.3 6.7 7.5 6.4 5 6.2 5.6 6.4 5.5 6 7 7.8 8.6 6.6 Use an appropriate method to test if there is a significant difference in the birth weight of siblings....
USE R AND SHOW CODES!! 1.a. There is a theorem that the ratios of blood types...
USE R AND SHOW CODES!! 1.a. There is a theorem that the ratios of blood types O, A, B and AB are 49:38:9:4, respectively. A research team, investigating a small community and obtained the following frequencies of blood type. Blood type Blood Type O A B AB Frequency 87 59 20 4 Test the hypothesis that the proportions in this community do not differ significantly from those in the general theorem. 1.b. The severity of participants' migraines is clinically assessed....
USE R AND SHOW CODES!! 1.a. An investigator is interested in comparing the cardiovascular fitness of...
USE R AND SHOW CODES!! 1.a. An investigator is interested in comparing the cardiovascular fitness of elite runners on three different training courses. course one is at, course 2 has graded inclines, and course three includes steep inclines, Ten runners were involved for each course. Heart rates measured on each course are as the following table Course 1 Course 2 Course 3 132 135 138 143 148 148 135 138 141 128 131 139 141 141 150 150 156 161...
The following data were collected as part of a study of coffee consumption among graduate students....
The following data were collected as part of a study of coffee consumption among graduate students. The following reflect cups per day consumed: 3          4          6          8          2          1          0          2 X X2 0 0 1 1 2 4 2 4 3 9 4 16 6 36 8 64 26 134 Compute the sample mean. Compute the sample standard deviation. Compute the median. Compute the first and third quartiles. Which measure, the mean or median, is a better measure of...
APPLIED STATISTICS 2 USE R CODE! SHOW R CODE Use data file RecordMath2526.txt, to produce a...
APPLIED STATISTICS 2 USE R CODE! SHOW R CODE Use data file RecordMath2526.txt, to produce a plot graph with Exam1 as x, Exam2 as y, use Gender as color, and Hw1 as pch. RecordMath2526 information Index Gender Hw1 Hw2 Hw3 Exam1 Hw4 Exam2 Hw5 Hw6 Hw7 Final 1 F 9 6 8 60 7 82 10 10 9 69 2 M 10 10 10 94 9 98 10 10 8 91 3 M 9 10 8 79 9 55 10...
- Show an example of an observational study that looks or sounds scientific, with the reference....
- Show an example of an observational study that looks or sounds scientific, with the reference. 1 - Explain what makes the study look or seem scientific. 2 - Explain what the problems with the study are and some of the possible ramifications if you were to accept the claim(s) being made as true. 3 - Briefly discuss what might happen if many people accepted the claim(s) being made as true.
Problem 2: (Revised 6.3) Magazine Advertising: In a study of revenue from advertising, data were collected...
Problem 2: (Revised 6.3) Magazine Advertising: In a study of revenue from advertising, data were collected for 41 magazines list as follows. The variables observed are number of pages of advertising and advertising revenue. The names of the magazines are listed as: (use sas) Adv Revenue 25 50 15 49.7 20 34 17 30.7 23 27 17 26.3 14 24.6 22 16.9 12 16.7 15 14.6 8 13.8 7 13.2 9 13.1 12 10.6 1 8.8 6 8.7 12 8.5...
The following data were collected from a repeated-measures study: Determine if there are any significant differences...
The following data were collected from a repeated-measures study: Determine if there are any significant differences among the four treatments. Use a .05 level of significance. Remember to; 1) State the null hypothesis, 2) Show all of your calculations, 3) Make a decision about your null hypothesis, 4) Make a conclusion including an APA format summary of your findings (include a measure of effect size if necessary), and 5) Indicate what you would do next given your findings. Participant Treatments...
The following data were collected for a phosphorescent paint being proposed for use in coating highways....
The following data were collected for a phosphorescent paint being proposed for use in coating highways. Time (s) Intensity (lux) 10 1505 20 745 30 369 40 183 50 90 60 45 70 22 80 11 90 5 100 3 Calculate the half-life for the paint. What is the intensity of the light at the 2nd half-life? What is the intensity of the light at the 3rd half-life?
1) The following data were collected from a repeated-measures study investigating the effects of 4 treatment...
1) The following data were collected from a repeated-measures study investigating the effects of 4 treatment conditions on test performance. Determine if there are any significant differences among the four treatments. State the null hypothesis. If you determine a significant treatment effect, use Tukey’s HSD test (overall α = .05) to determine which treatments differ from which other treatments. Also, compute the percentage of variance explained by the treatment effect (η2). Conclude with an appropriate summary describing what you found....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT