derive_outcome_ratio Calculates new outcomes by dividing one outcome from another. If function returns NULL then no derived data are present. Any observation outcome sets that already have a result outcome associated with them are removed.

derive_outcome_ratio(Data, numerator, denominator, result)

Arguments

Data

An ERA data.table (e.g. ERAg::ERA.Compiled).

numerator

ERA outcome code of numerator outcome (see ERAg::OutcomeCodes)

denominator

ERA outcome code of denominator outcome (see ERAg::OutcomeCodes)

result

ERA outcome code for the resulting values (see ERAg::OutcomeCodes)