In this exercise we would like to analyze the results of the trial that involves magnets as a treatment for pain. The trial is described in Question [ex:Inference.1]. The results of the trial are provided in the file
magnets.csv.
Patients in this trail where randomly assigned to a treatment or to a control. The responses relevant for this analysis are either the variable
change, which measures the difference in the score of pain reported by the patients before and after the treatment, or the variable score1, which measures the score of pain before a device is applied. The explanatory variable is the factor active. This factor has two levels, level 1 to indicate the application of an active magnet and level 2 to indicate the application of an inactive placebo.
In the following questions you are required to carry out tests of hypotheses. All tests should conducted at the 5% significance level:
-
Is there a significance difference between the treatment and the control groups in the expectation of the reported score of pain before the application of the device?
-
Is there a significance difference between the treatment and the control groups in the variance of the reported score of pain before the application of the device?
-
Is there a significance difference between the treatment and the control groups in the expectation of the change in score that resulted from the application of the device?
-
Is there a significance difference between the treatment and the control groups in the variance of the change in score that resulted from the application of the device?
