STA305s14 Computer Assignment Six
Quiz in lecture on Monday March 24th
I know this is pretty gruesome, but the data are real -- from the U of T
School of Dentistry.
An experiment in dentistry seeks to test the effectiveness of a drug
(HEBP) that is supposed to help dental implants become more firmly attached
to the jaw bone. This is an initial test on animals. False teeth were
implanted into the leg bones of rabbits, and the rabbits were randomly
assigned to receive either the drug or a saline solution
(placebo). Technicians administering the drug were blind to experimental
condition.
Rabbits were also randomly assigned to be "sacrificed" after either 3,
6, 9 or 12 days. At that time, the implants were pulled out of the bone by
a machine that measures force in newtons and stiffness in newtons/mm. For
both of these measurements, higher values indicate more healing. A measure
of "pre-load stiffness" in newtons/mm is also available for each
animal. This may be another indicator of how firmly the false tooth was
implanted into the bone, but it might even be a covariate. Nobody can seem
to remember what "preload" means, so we'll ignore this variable for now.
The data are available in the file
bunnies.data.
The variables are
- Identification code
- Time (3,6,9,12 days of healing)
- Drug (1=HEBP, 0=saline solution)
- Stiffness in newtons/mm
- Force in newtons
- Preload stiffness in newtons/mm
Please do the following.
- Using proc glm, conduct a two-factor ANOVA, with force
as the dependent variable. Use the means statement to get
cell means and marginal means. You should also be able to tell how
many rabbits were in each experimental condition. Be prepared to
answer the following questions about each of the significance tests
that SAS produces by default (I count 4 default tests).
- What is the value of the test statistic? The answer is a
number from your printout.
- What is the p-value? The answer is a number from your
printout.
- Do you reject the null hypothesis at the 0.05 level? Yes
or No.
- What, if anything, do you conclude? This is not the place
for statistical jargon. "What do you conclude" means say
something about the drug, healing, time -- something like that.
- Now, make a table with a row for each treatment combination. Give the coefficients of the constrast or contrasts that would be used to test for
- The main effect of Drug
- The main effect(s) of Time
- The Drug by Time interaction.
- Make another table with a row for each treatment combination. Make columns showing the dummy variables for effect coding.
- Give E[Y|X=x] for a regression model with both main effects and the interaction. Use your variable names from the preceding question.
- In terms of the β values of your regression model, give the null hypothesis you would test in order to answer each of the following questions.
- Averaging across time periods, is there a differnece between the drug and placebo in mean force required to extract the tooth?
- Averaging across drug and placebo, is does elapsed time affect the mean force required to extract the tooth?
- Does the effect of the drug depend upon elapsed time?
- Now please return to SAS. Using either proc glm or proc reg (do it the way you find easiest), conduct tests to answer the following questions. Just do regular one-at-a-time tests. Don't bother with any Bonferroni or Scheffé correction yet. Just consider one dependent variable: Force. As usual, we are guided by the α = 0.05 significance level.
- Are the marginal means for time different at 3 and 6 days?
- Are the marginal means for time different at 6 and 9 days?
- Are the marginal means for time different at 9 and 12 days?
- Is there a difference between Drug and Placebo just at 3 days?
- Is there a difference between Drug and Placebo just at 6 days?
- Is there a difference between Drug and Placebo just at 9 days?
- Is there a difference between Drug and Placebo just at 12 days?
- Is there a difference between Drug and Placebo at any day? This is a combination of the last four tests.
Be able to answer questions like these for each test:
- What is the value of the test statistic? The answer is a number.
- What is the p-value? The answer is a number.
- Do you reject the null hypothesis at the 0.05 level? Yes or No.
- What, if anything, do you conclude? This is not the place for statistical jargon. "What do you conclude" means say something about the drug, healing, time -- something like that.
- It would be possible to treat all the tests you've done as Scheffé follow-ups to the first test on the printout -- the test for equality of the eight treatment means. But if you think carefully about it, that's wasteful (almost nothing is significant). The only reason for doing this experiment was to see the effect of the HEBP drug, and the only reason for including time as a factor was to discover the way that time affected the drug's effectiveness. The null hypotheses says there is no effect of drug at any time, which is the same as saying the drug had no effect at all. So, a good initial test would be the test for the drug's effect at any time period; that's the four-degree-of-freedom test.
Using this as the initial test, use proc iml to obtain the appropriate Scheffé critical value or values. Then, answer these questions based on Scheffé tests. Of course you will use the F statistics you already computed.
- Is there a difference between Drug and Placebo just at 3 days?
- Is there a difference between Drug and Placebo just at 6 days?
- Is there a difference between Drug and Placebo just at 9 days?
- Is there a difference between Drug and Placebo just at 12 days?
- Based on the Scheffé tests you've just carried out, would you advise the dentists running this study to proceed to clinical trials with humans? Answer Yes or No and explain in one sentence.
Bring both your log file and your procedure output file to the quiz. You will be asked to hand them in with your quiz. Please put your name and student number in the title statement.
Please be reminded of the rules for computer assignments and quizzes. See the syllabus for more detail.
- You may copy freely from me, but do not look at anyone else's SAS code before the quiz.
- Do not show your SAS code to any other student in the class.
- Do not write anything on the printouts.
- Important: Comment statements and other typed material that would help with interpretation of the computer output are expressly forbidden. For example, you may not type assignment questions or answers into your code, or otherwise cause them to appear on your log file or procedure output file. Any such material is an unauthorized aid for the purposes of this course, and if you use or possess an unauthorized aid, you will be charged with an academic offence.
- The log and procedure output files must be
generated at the same time by the same SAS program or you may lose a lot of marks.
This assignment is licensed under a Creative
Commons Attribution-ShareAlike 3.0 Unported License. Use any part of it
almost any way you like, as long as you share the results freely. See the
license for details.