Convert from input data format to needed input format to derive KRI for an Assessment. Calculate a site-level rate.
Arguments
- dfInput
data.frameInput data with one record per subject. Created by passing Raw+ data intoInput_Rate(). Expected columns:GroupID,GroupLevel,Numerator,Denominatorand/or columns specified instrCountColandstrGroupCol.- strNumeratorCol
stringColumn to be counted. Defaults to "Numerator".- strDenominatorCol
stringColumn name for the numericalExposurecolumn. 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 parameterstrNumeratorColDenominator- Number of days on treatment; the actual name of this column is specified by the parameterstrDenominatorCol