derive_outcome_ratio.Rd
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)
An ERA data.table (e.g. ERAg::ERA.Compiled
).
ERA outcome code of numerator outcome (see ERAg::OutcomeCodes
)
ERA outcome code of denominator outcome (see ERAg::OutcomeCodes
)
ERA outcome code for the resulting values (see ERAg::OutcomeCodes
)