Skip to contents

Summarises field IDs 6153 and 6177. The returned data frame contains separate indicator columns for each medication type.

Usage

derive_touchscreen_self_reported_med_bp_dm_chol_exog_hormones(
  ukb_main,
  ukb_data_dict = ukbwranglr::get_ukb_data_dict(),
  instance = NULL,
  .drop = TRUE
)

Arguments

ukb_main

A UK Biobank main dataset (data frame).

ukb_data_dict

The UKB data dictionary (available online at the UK Biobank data showcase. This should be a data frame where all columns are of type character.

instance

Character. Optionally specify a single instance to be summarised e.g. '1'. Default is NULL, in which case the appended columns will reflect a summary across all available instances.

.drop

If TRUE, remove input columns for Field IDs 6153 and 6177 from output.

Value

A data frame.

Details

Note that field ID 6153 applies only to female participants, where as field ID6177 applies to male participants.