Patients (20) with high blood pressure were randomly assigned into two groups, a placebo group and a treatment group. The placebo group received conventional treatment while the treatment group received a new drug that is expected to lower blood pressure. After treatment for a couple of months, blood pressures of the patients were measured.
Determine if the new drug had a significant effect on high blood pressure.
-----------------------------------------------------
Blood Pressure (systolic)
Placebo Group New Drug Group
-----------------------------------------------------
90 71
95 79
67 69
120 98
89 91
92 85
100 89
83 75
79 78
85 80
The hypothesis to be tested for this case is,
To perform this hypothesis test, we use the method. The obtained is then compared with the default since we are not given the level of significance.
Applying the 2 sample t-test in , the test can be performed by keying in the following commands,
x=c(90,95,67,120,89,92,100,83,79,85)
y=c(71,79,69,98,91,85,89,75,78,80)
t. test(x, y)
Running these commands gives us the following output,
Welch Two Sample t-test
data: x and y
t = 1.6081, df = 15.569, p-value = 0.1279
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-2.730473 19.730473
sample estimates:
mean of x mean of y
90.0 81.5
The from this output is divided by 2 since the test we are conducting is one sided.
Therefore, and the null hypothesis is rejected if .
Since we fail to reject the null hypothesis and conclude that there is no sufficient evidence to show that the new drug had a significant effect on high blood pressure as compared to placebo at level of significance.
Comments
Leave a comment