The recovery time (in days) is measured for 10 patients taking a new drug and for 10 different patients taking a placebo. We wish to test the hypothesis that the mean recovery time for patients taking the drug is less than for those taking placebo. The data are:
With drug: 15,10,13,7,9,8,21,9,14,8
A. Perform a hypothesis testing under an assumption of normality and equal population variances.
Interpretation: We lack the evidence to reject the null hypothesis with p-value at 0.3002, hence the true difference in mean recovery time for patients taking drug is either equal to or greater than those taking placebo.
B. Perform a hypothesis testing under an assumption of normality and unequal population variances.
Codes: (Using the defined data above)
Interpretation: Still, we lack the evidence to reject the null hypothesis at p = 0.3006, and so the true difference in mean recovery time for patients taking the drug is either equal to or greater than those taking a placebo.
To leave a comment
for the author, please follow the link and comment on their blog: ALSTAT R Blog
offers daily e-mail updates
news and tutorials
on topics such as: Data science
, Big Data, R jobs
, visualization (ggplot2
), programming (RStudio
, Web Scraping
) statistics (regression
, time series
) and more...
If you got this far, why not subscribe for updates
from the site? Choose your flavor: e-mail
, or facebook