getInnerEventInfo: Access the inner event info from a complex CMA object.

View source: R/adherer.R

getInnerEventInfoR Documentation

Access the inner event info from a complex CMA object.

Description

Retrieve the event info encapsulated in a complex (i.e., per episode or sliding window) CMA object.

Usage

getInnerEventInfo(
  x,
  flatten.medication.groups = FALSE,
  medication.groups.colname = ".MED_GROUP_ID"
)

Arguments

x

a CMA object.

flatten.medication.groups

Logical, if TRUE and there are medication groups defined, then the return value is flattened to a single data.frame with an extra column containing the medication group (its name is given by medication.groups.colname).

medication.groups.colname

a string (defaults to ".MED_GROUP_ID") giving the name of the column storing the group name when flatten.medication.groups is TRUE.

Value

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


AdhereR documentation built on July 5, 2022, 5:08 p.m.