Calculate a QCOVID2 score from AvonCap data source
Source:R/augment-avoncap-qcovid2.R
derive_qcovid.Rd
uses inbuilt imd_to_townsend map. This implements a cut down version of the QCovid2 score depending on what data is available.
Usage
derive_qcovid(df, v = avoncap_df %>% get_value_sets())
Value
the same dataframe with additional columns,
qcovid2.log_hazard, covid2.hazard_ratio: a log hazard rate for the QCOVID2 score where missing data is substituted with the reference value for the QCOVID2 population.
qcovid2.log_comorbid_hazard, qcovid2.comorbid_hazard_ratio: a log hazard rate for the comorbid conditions and not including age and BMI.