i have a data set that includes repeated measurements on 50 subjects. for each subject, i have their gender, type of treatment received, and ecg over a 24-hour interval at baseline (0), day 5 and day 28.

for day 0 - each subject's ecg was measured at time 0, 1, 2,...,24 hours.

for day 5 and day 28 - each subject's ecg was measured at time 4, 8, 12, 16, 20, 24

this trial has a parallel design

so here's roughly what the data looks like:

subject trt gender day hour ecg

1 a f 0 1 398

1 a f 0 2 345

.

.

1 a f 28 24 412

.

.

50 b m 24 2.0 434

im trying to study the treatment difference (3 treatments including placebo) and not combine analysis for day 5 and 28.

ecg is the dependent variable. i'm taking gender, trt, day, hour as independent variables with gender, trt, day as discrete variables and hour as continuous.

im thinking my sas code to analyze this data should look something like the following:

proc mixed;

class sub trt day gender ;

model ecg=trt trt*day gender hour;

repeated/type=un/cs/etc subject=sub;

run;

does the above code look acceptable? im confused because of the multiple ecg readings in a given day as opposed to a single reading and im not quite sure how to deal with this.

any input will be appreciated.

for day 0 - each subject's ecg was measured at time 0, 1, 2,...,24 hours.

for day 5 and day 28 - each subject's ecg was measured at time 4, 8, 12, 16, 20, 24

this trial has a parallel design

so here's roughly what the data looks like:

subject trt gender day hour ecg

1 a f 0 1 398

1 a f 0 2 345

.

.

1 a f 28 24 412

.

.

50 b m 24 2.0 434

im trying to study the treatment difference (3 treatments including placebo) and not combine analysis for day 5 and 28.

ecg is the dependent variable. i'm taking gender, trt, day, hour as independent variables with gender, trt, day as discrete variables and hour as continuous.

im thinking my sas code to analyze this data should look something like the following:

proc mixed;

class sub trt day gender ;

model ecg=trt trt*day gender hour;

repeated/type=un/cs/etc subject=sub;

run;

does the above code look acceptable? im confused because of the multiple ecg readings in a given day as opposed to a single reading and im not quite sure how to deal with this.

any input will be appreciated.

Last edited: