Convert from input data format to needed input format to derive KRI for an Assessment. Calculate site-level count.
Arguments
- dfInput
data.frame
Input data with one record per subject. Created by passing Raw+ data intoInput_Rate()
. Expected columns:GroupID
,GroupLevel
,Numerator
,Denominator
and/or columns specified instrCountCol
andstrGroupCol
.- strCountCol
Required. Numerical or logical. Column to be counted.
- strGroupCol
character
Name of column for grouping variable. Default:"GroupID"
Details
This function transforms data to prepare it for the analysis step. It is currently only sourced for the Consent and IE Assessments.
Data Specification
(dfInput
) must include the columns specified by strCountCol
and strGroupCol
.
Required columns include:
GroupID
- Group IDGroupLevel
- Group TypeNumerator
- Number of events of interest; the actual name of this column is specified by the parameterstrNumeratorCol
Denominator
- Number of days on treatment; the actual name of this column is specified by the parameterstrDenominatorCol
The input data has one or more rows per site. Transform_Count()
sums strCountCol
for a TotalCount
for each site. Metric
is set to TotalCount
to be used downstream in the workflow.