Question

In: Statistics and Probability

Problem 1. A drug company tested three formulations of a pain relief medicine for migraine headache...

Problem 1. A drug company tested three formulations of a pain relief medicine for migraine headache sufferers. For the experiment 27 volunteers were selected and 9 were randomly assigned to one of three drug formulations. The subjects were instructed to take the drug during their next migraine headache episode and to report their pain on a scale of 1 to 10 (10 being most pain).

             Drug A 4 5 4 3 2 4 3 4 4

             Drug B 6 8 4 5 4 6 5 8 6

             Drug C 6 7 6 6 7 5 6 5 5

You can read in data into R by the following R code.

pain = c(4, 5, 4, 3, 2, 4, 3, 4, 4, 6, 8, 4, 5, 4, 6, 5, 8, 6, 6, 7, 6, 6, 7, 5, 6, 5, 5)

drug = c(rep("A",9), rep("B",9), rep("C",9))

migraine = data.frame(pain,drug)

a). Make a boxplot to have a visual check.

b). Compute SST, SSG. SSE directly by definition

c). Compute F value directly by definition

d). Find p-value directly by definition

e). Conduct ANOVA test by R function aov.

f). Make your conclusion.

Applied stats 2 r code questions

Solutions

Expert Solution

a). Make a boxplot to have a visual check.

b). Compute SST, SSG. SSE directly by definition

SST = 56.66

SSG = 28.22

SSE = 28.44

c). Compute F value directly by definition

F = 11.91

d). Find p-value directly by definition

p-value = 0.000256

e). Conduct ANOVA test by R function aov.

The R output is:

The R code is:

pain = c(4, 5, 4, 3, 2, 4, 3, 4, 4, 6, 8, 4, 5, 4, 6, 5, 8, 6, 6, 7, 6, 6, 7, 5, 6, 5, 5)
drug = c(rep("A",9), rep("B",9), rep("C",9))
migraine = data.frame(pain,drug)
boxplot(pain)
aov(pain~drug)
ANOVA1 = aov(pain~drug)
summary(ANOVA1)

f). Make your conclusion.

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

Therefore, we can conclude that there is a significant difference between the groups.


Related Solutions

A drug company tested three formulations of a pain relief medicine for migraine headache sufferers. For...
A drug company tested three formulations of a pain relief medicine for migraine headache sufferers. For the experiment 27 volunteers were selected and 9 were randomly assigned to one of three drug formulations. The subjects were instructed to take the drug during their next migraine headache episode and to report their pain on a scale of 1 to 10 (10 being most pain). Drug A Drug B Drug C 4 6 6 5 8 7 4 4 6 3 5...
A pharmaceutical company tested three formulations of a pain relief medicine for migraine headache sufferers. For...
A pharmaceutical company tested three formulations of a pain relief medicine for migraine headache sufferers. For the experiment, 88 volunteers were randomly assigned to one of three drug formulations. The subjects were instructed to take the drug during their next migraine headache episode and to report their pain level on a Likert scale of 1 (no pain) to 10 (extreme pain) 30 minutes after taking the drug. Is there a significant difference in the mean pain level for at least...
A pharmaceutical company tested three formulations of a pain relief medicine for migraine headache sufferers. For...
A pharmaceutical company tested three formulations of a pain relief medicine for migraine headache sufferers. For the experiment, 27 volunteers were selected and 9 were randomly assigned to one of three drug formulations. The subjects were instructed to take the drug during their next migraine headache episode and to report their pain on a scale of 1 = no pain to 10 = extreme pain 30 minutes after taking the drug. a. Identify the response variable for this experiment. __________________________________(2)...
A pharmaceutical company tested four formulations of a pain relief medicine for migraine headache sufferers. For...
A pharmaceutical company tested four formulations of a pain relief medicine for migraine headache sufferers. For the experiment, 32 volunteers were selected and 8 were randomly assigned to one of four drug formulations. The subjects were instructed to take the drug during their next migraine headache episode and to report the time it needs for their pain to go away after taking the drug. Carry out an appropriate test to see if there are any mean differences in pain relief...
Use SAS to answer the question: A drug company tested three formulations of a pain relief...
Use SAS to answer the question: A drug company tested three formulations of a pain relief medicine for migraine headache sufferers. For the experiment 27 volunteers were selected and 9 were randomly assigned to one of three drug formulations. The subjects were instructed to take the drug during their next migraine headache episode and to report their pain on a scale of 1 to 10 (10 being most pain) Drug A: 4 5 4 3 2 4 3 4 4...
Use SPSS for this Application Exercise: A pharmaceutical company tested three formulations of a pain relief...
Use SPSS for this Application Exercise: A pharmaceutical company tested three formulations of a pain relief medicine for migraine headache sufferers. Volunteers were selected and randomly assigned to one of the three drug formulations. The volunteers were instructed to take the drug during their next migraine headache episode and to report their pain on a scale of 1 to 10 (10 being most pain). The data are below. What can be concluded with ? = 0.05? formulation A formulation B...
1.  An investigator wishes to compare the average time to relief of headache pain under three distinct...
1.  An investigator wishes to compare the average time to relief of headache pain under three distinct medications, call them Drugs A, B, and C. Fifteen patients who suffer from chronic headaches are randomly selected for the investigation, and five subjects are randomly assigned to each treatment. The following data reflect times to relief (in minutes) after taking the assigned drug. Test if there is a significant difference in the mean times among three treatments. Use α = 0.05. (apply ANOVA)...
A new drug for pain relief is being tested within a given palliative care population. The...
A new drug for pain relief is being tested within a given palliative care population. The new drug is being compared to an already approved pain relief drug that is commonly used in providing palliative care to patients who experience chronic severe pain. Assume the patients are asked to rate the pain on a scale from 1 to 10, and the data presented below was obtained from a small study designed to compare the effectiveness of the two drugs. Set...
The manufacturer of an over-the-counter pain reliever claims that its product brings pain relief to headache...
The manufacturer of an over-the-counter pain reliever claims that its product brings pain relief to headache suffers in less than 3.5 minutes, on average. In order to be able to make this claim in its television advertisements, the manufacturer was required by a particular television network to present statistical evidence in support of the claim. The manufacturer reported that for a sample of 50 headache sufferers, the mean time to relief was 3.3 minutes and the standard deviation was 66...
The probability that a person suffers from migraine has relief with a specific drug is 0.9,...
The probability that a person suffers from migraine has relief with a specific drug is 0.9, three people are randomly selected with migraine to which the drug is administered. Find the probability that the number of people achieving relief will be: a) Does it meet the characteristics of a binomial variable? Yes or no, b) No person c) Exactly 1 d) More than one e) Two or less f) Two or three g) At least 3 h) What is the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT