11-05-2014 11:48 AM
I currently work on a new project where I was requested to perform a Cochrane Armitage trend test across adverse events severity grades between two arms.
My data consists of variables:
Category, MedDRA_Term, arm, sev1, sev2, sev3, sev4 ;
where sev1-sev4 correspond to ae_severity and include the number of subjects (please refer to attached document)
Does anybody know how I can edit my dataset in order to perform the test? I would need to combine sev1-sev4 into one variable to use the code below?
tables arm*severity / trend measures cl
exact trend / maxtime=60;
I would really appreciate any input from you!
11-05-2014 12:29 PM
For your data on hand, you can choose to put everything into one dataset and subset it on the fly or you can subset upfront by disease. So for example, the subset or individual table should look like (Anemia):
Then the following code (minor modification comparing to yours) can then be run:
PROC FREQ DATA = MYDATA
TABLES arm * severity /
EXACT MEASURES TREND / MAXTIME=60