
Summary Analysis Function for Compliance Columns (TEFSCNCMP01 e.g.)
Source:R/cmp_functions.R
cmp_cfun.RdA simple statistics function which prepares the numbers with percentages in the required format, for use in a split content row. The denominator here is from the expected visits column.
Arguments
- df
(
data.frame)
data set containing all analysis variables.- labelstr
(
character)
label of the level of the parent split currently being summarized (must be present as second argument in Content Row Functions). Seertables::summarize_row_groups()for more information.- .spl_context
(
data.frame)
gives information about ancestor split states that is passed byrtables.- variables
(
list)
with variable names of logical columns forexpected,receivedandmissingvisits.- formats
(
list)
with thecount_percentformat to use for the received and missing visits columns.
Value
The rtables::in_rows() result with the counts and proportion statistics.
Details
Although this function just returns NULL it has two uses, for
the tern users it provides a documentation of arguments that are
commonly and consistently used in the framework. For the developer it adds a
single reference point to import the roxygen argument description with:
@inheritParams proposal_argument_convention
See also
cmp_post_fun() for the corresponding split function.