Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getCMA

Access the actual CMA estimate from a CMA object.


Description

Retreive the actual CMA estimate(s) encapsulated in a simple, per episode, or sliding window CMA object.

Usage

getCMA(x)

Arguments

x

a CMA object.

Value

a data.frame containing the CMA estimate(s).

Examples

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);
## Not run: 
cmaE <- CMA_per_episode(CMA="CMA1",
                        data=med.events,
                        ID.colname="PATIENT_ID",
                        event.date.colname="DATE",
                        event.duration.colname="DURATION",
                        event.daily.dose.colname="PERDAY",
                        medication.class.colname="CATEGORY",
                        carry.only.for.same.medication=FALSE,
                        consider.dosage.change=FALSE,
                        followup.window.start=0,
                        observation.window.start=0,
                        observation.window.duration=365,
                        date.format="%m/%d/%Y"
                       );
getCMA(cmaE);
## End(Not run)

AdhereR

Adherence to Medications

v0.6.1
GPL (>= 2)
Authors
Dan Dediu [aut, cre], Alexandra Dima [aut], Samuel Allemann [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.