Skip to contents

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())

Arguments

df

a normalised avoncap data source

v

a value set

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.