Let us assume that we are working on a diabetes study, testing a particular medication against placebo
There can be cases where the glucose levels are not controlled adequately while on study
Let us assume again for this example that , if glucose levels are not adequately controlled, they can be injected with insulin as a rescue medication
For analysis purposes, we want to identify the time from treatment start to first administration of this rescue medication after study treatment start
There will be subjects who never need rescue medication, and for these subjects we want to indicate that the rescue medication was not needed until study treatment end date
We want to differentiate the subjects who needed the rescue medication and who did not
We do that in a variable called CNSR (Censor)
For the subjects who needed rescue medication, we will populate as 0 and for the ones who did not, we populate it as 1
VARIABLE_NAME
VARIABLE_LABEL
DERIVATION
STARTDT
Time-to-Event Origin Date for Subject
Set to TRTSDT
PARAM
Parameter
Create a parameter named 'Time to first Rescure Medication' for each subject all safety subjects present in ADSL. See AVAL for derivation logic.
PARAMCD
Parameter Code
Set to 'T2RESMED when PARAM="Time to first Rescue Medication"
ADT
Analysis Date
For PARAM="Time to first Rescue Medication"      A. For subjects who took atleast dose of Insulin after treatment start:      Get earliest CMSTDTC (after converting to numeric format) for each subject where CMDECOD="Insulin".      B. For subjects who did not take insulin after treatment start      Populate with TRTEDT.
CNSR
Censor
For PARAM="Time to first Rescue Medication"      A. For subjects who took atleast dose of Insulin after treatment start:      Set to 0      B. For subjects who did not take insulin after treatment start      Set to 1
AVAL
Analysis Value
Set to ADT-STARTDT+1.
Complete SAS code to generate the output is available for registered users!
Already registered! Login Not registered, you can signup here! Signup
Dont want to register?
You can directly purchase this lesson (code+input data) here
You can purchase this lesson (code+input data) here
If you are looking to purchase subscription for full access to data and programs for all lessons (TASKS+SDTM+ADaM+TFLs), you can send us a message on +91-7330--77--66--49-- on Whatsapp.
R data is available only for R subscribers.
You can contact us on +91-7330--77--66---49 for purchasing subscription to R programs and data
R codes are available only for R subscribers.
You can contact us on +91-7330--77--66---49 for purchasing subscription to R programs and data