
Last chance! 50% off unlimited learning
Sale ends in
Restrict a CMA object to a subset of patients.
subsetCMA(cma, patients, suppress.warnings)
a CMA object.
a list of patient IDs to keep.
Logical, if TRUE
don't show any
warnings.
a CMA object containing only the information for the given patients.
# NOT RUN {
cma1 <- CMA1(data=med.events,
ID.colname="PATIENT_ID",
event.date.colname="DATE",
event.duration.colname="DURATION",
followup.window.start=30,
observation.window.start=30,
observation.window.duration=365,
date.format="%m/%d/%Y"
);
getCMA(cma1);
cma1a <- subsetCMA(cma1, patients=c(1:3,7));
cma1a; getCMA(cma1a);
# }
Run the code above in your browser using DataLab