Add variables to the merged dataset.
add_single_variable(
data,
funs_mutate = function(x) x,
name,
unit,
type,
description,
force_dict_update = FALSE
)
add_age(data)
add_dysglycemia(data, force_dict_update = FALSE)
add_outcomes_ir(data, force_dict_update = FALSE)
add_outcomes_bcf(data, force_dict_update = FALSE)
add_outcomes_ic(data, force_dict_update = FALSE)
add_total_fa(data, force_dict_update = FALSE)
add_metabolic_syndrome(data)
add_ethnicity(data)
add_bmi(data)
add_map(data)
The prefinal dataset.
The (generally) mutate function to add a variable.
Name of the new variable. For the dictionary entry.
The unit of the new variable. For the dictionary entry.
The value type (eg. Numeric) of the variable. For the dictionary entry.
A brief description of the new variable. For the dictionary entry.
Force the dictionary entry to be updated.
add_single_variable()
: General function; add a single variable to the
prefinal dataset, including an entry into the dictionary.
add_age()
: Calculate the age of the participants
add_dysglycemia()
: Add IFG, IGT, DM, and dysglycemia variables to the
dataset.
add_outcomes_ir()
: Add insulin resistance/sensitivity variables (HOMA,
ISI) to the dataset.
add_outcomes_bcf()
: Add beta-cell function variables (ISSI-2 and IGI/IR) to
the dataset.
add_outcomes_ic()
: Add insulin clearance and C-peptide AUC variables to
the dataset.
add_total_fa()
: Add total fatty acid concentrations from either normal
or trans measurements to the dataset.
add_metabolic_syndrome()
: Add the metabolic syndrome (binary and components) to
the dataset. (incomplete)
add_ethnicity()
: Combine parent ethnicity to determine participant
ethnicity. When parents ethnicities did not match, the participant was
classified as 'Other'.
add_bmi()
: Add BMI to the prefinal dataset.
add_map()
: Add mean arterial pressure to the prefinal dataset.