Calculate Ratios from PKNCA Results
calculate_ratios(
data,
test_parameter,
ref_parameter = test_parameter,
match_cols,
ref_groups,
test_groups = NULL,
adjusting_factor = 1,
custom_pptestcd = NULL
)A data.frame result object with the calculated ratios.
A PKNCAresults object or its result data.frame.
Character. The PPTESTCD value to use as test (numerator).
Character. The PPTESTCD value to use as reference (denominator). Defaults to test_parameter.
Character vector of column names to match between test and reference groups or a data.frame specifying columns and values.
A data.frame specifying reference groups. At its minimum, contains the contrast variable value(s) for the reference.
A data.frame specifying test groups. Optional. By default is NULL, allowing rows not in ref_groups be used as test.
Numeric to multiply the ratio. Default is 1.
Optional character. If provided, will be used as the PPTESTCD value.