Convert from input data format to needed input format to derive KRI for an Assessment. Calculate a site-level rate.
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
.- strNumeratorCol
string
Column to be counted. Defaults to "Numerator".- strDenominatorCol
string
Column name for the numericalExposure
column. Defaults to "Denominator".
Value
data.frame
with one row per site with columns GroupID
, GroupLevel
, Numerator
, Denominator
, and Metric
.
Details
This function transforms data to prepare it for the analysis step. It is currently only sourced for the Adverse Event, Disposition, Labs, and Protocol Deviations Assessments.
Data Specification
(dfInput
) must include the columns specified by strNumeratorCol
and strDenominatorCol
.
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