Hi Steve, I tried modifying the base code you have posted for me in order to account for the blocking effect. I am not confident of the changes I have made though…how does it look? Thanks!
Scenario (just as a reminder):
A specific drug X is administered to patients at various dosages (DOSE), and the change in patients’ heart rates is monitored hourly (PATIENT, HEARTRATE, and TIME). Men and women are tested separately (GENDER). Also, prior to assigning patients to a certain dosage, three weight categories (BLOCK) are created. From all weight categories, equal number of patients is assigned to a certain dosage.
proc mixed data=mydata;
class dose patient time gender block;
model heartrate= dose|time|gender;
random block;
repeated time /subject=patient(dose*gender*block) type=un;
run;
(As this thread is getting longer, I’ll start a new one with this post)