Based on the limited information I have provided, Mr. D (a dedicated contributor at this forum) has kindly provided me a base code for my ‘drug test’ scenario. I trust his base code, while I am not certain of the modifications I have made to it. Please take a look and see if the code below looks alright. Thanks in advance.
Scenario:
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.
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;
Any suggestions/comments are greatly appreciated. Especially, I am not sure how to handle the block effect in the proc mixed repeated procedure.