@mgrzyb wrote:
Hi and thanks.
I have never used a spreadsheet. So I just want to graph one group of patients on drug A with all their repeated times, and I figured it may be easier like having time1-timeX for 1 patient, and time 1 and time X for those on Drug B.
I already got the mean differences. For another analyses, I had 2 groups, and their scores were s1-s20 per group. dID and Manova nd got good results.
I just don't want have to retype each person's Heart rate as hr1-hrx for one patient, and hr2-hrx for the others and so on.
If you have any ideas, I would appreciate them. Marysia
You did not include any drug information so at this point not much I can do with that but to create a plot of each patient:
data have;
input id treatment_number ave_hrdiff ;
datalines;
1 1 -4
1 2 6
1 3 7
1 4 -8
1 5 -2
1 6 -4
2 1 -2
2 2 3
2 3 8
2 4 7
4 1 -9
4 2 2
4 3 8
4 4 9
;
run;
/* just in case*/
proc sort data=have;
by id treatment_number;
run;
proc sgplot data=have;
by id;
scatter x=treatment_number y=ave_hrdiff;
run;
If your data set has an actual variable for the drug you could make the plot code:
proc sgplot data=have;
by id;
scatter x=treatment_number y=ave_hrdiff / group=drug;
run;
Which would show each series of values for ave_hrdiff a differenct color and/or symbol (depending on ODS style in effect) for each drug. A legend would appear below the graph with a key.
... View more