extend_exp_duration {metalite.sl} | R Documentation |
Add cumulative count and summary stats for categories for exposure duration analysis
Description
Add cumulative count and summary stats for categories for exposure duration analysis
Usage
extend_exp_duration(
outdata,
category_section_label = NULL,
duration_category_list = NULL,
duration_category_labels = NULL
)
Arguments
outdata |
An |
category_section_label |
A character value of section label.
If |
duration_category_list |
A list of duration category ranges.
Must be real numbers and may overlap or be mutually exclusive.
A list should be in the form of |
duration_category_labels |
A character vector of internal labels. Labels to be displayed for the duration_category_list values. Must be the same length as duration_category_list. |
Value
A list of analysis raw datasets.
Examples
meta <- meta_sl_exposure_example()
outdata <- meta |> prepare_exp_duration()
outdata |>
extend_exp_duration(
duration_category_list = list(c(1, NA), c(7, NA), c(21, NA)),
duration_category_labels = c(">=1 day", ">=7 days", ">=21 days")
)
[Package metalite.sl version 0.1.0 Index]