getEventInfo | R Documentation |
Retrieve the event info encapsulated in a simple, per episode, or sliding window CMA object.
getEventInfo(
x,
flatten.medication.groups = FALSE,
medication.groups.colname = ".MED_GROUP_ID"
)
x |
a CMA object. |
flatten.medication.groups |
Logical, if |
medication.groups.colname |
a string (defaults to ".MED_GROUP_ID")
giving the name of the column storing the group name when
|
a data.frame containing the CMA estimate(s).
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"
);
getEventInfo(cma1);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.