Lower blood pressure: Five individuals with high blood pressure were given a new drug that was designed to lower blood pressure (in mmHg) was measured before and after treatment for each individual, with the following results:
Before<-c(170, 164, 168, 158, 183)
After<-c(145, 132, 129, 135, 145)
Construct a 98% confidence interval for the mean reduction in systolic blood pressure.
Hint: Using R, and examples in Lecture Notes
Paired t-test
data: Before and After
t = 9.6173, df = 4, p-value = 0.0006535
alternative hypothesis: true difference in means is not equal to 0
99 percent confidence interval:
16.36779 46.43221
sample estimates:
mean of the differences
31.4
------------------------------------------------------------
Paired t-test
data: Before and After
t = 9.6173, df = 4, p-value = 0.0003268
alternative hypothesis: true mean difference is greater than 0
98 percent confidence interval:
21.60991 Inf
sample estimates:
mean difference
31.4
-------------------------------------------------------------
Paired t-test
data: Before and After
t = 9.6173, df = 4, p-value = 0.0006535
alternative hypothesis: true difference in means is not equal to 0
98 percent confidence interval:
19.16635 43.63365
sample estimates:
mean of the differences
31.4
--------------------------------------------------------------------
Welch Two Sample t-test
data: Before and After
t = 5.913, df = 7.6402, p-value = 0.0004252
alternative hypothesis: true difference in means is not equal to 0
98 percent confidence interval:
15.84445 46.95555
sample estimates:
mean of x mean of y
168.6 137.2
a.
( 16.36779, 46.43221)
b.
(24.43959, 38.36041)
c.
(21.61, Inf)
d.
(15.84445, 46.95555)