util_referred_vars {dataquieR} | R Documentation |
For a group of variables (original) the function provides all original plus referred variables in the metadata and a new item_level metadata including information on the original variables and the referred variables
Description
For a group of variables (original) the function provides all original plus referred variables in the metadata and a new item_level metadata including information on the original variables and the referred variables
Usage
util_referred_vars(
resp_vars,
id_vars = character(0),
vars_in_subgroup = character(0),
meta_data,
meta_data_segment = NULL,
meta_data_dataframe = NULL,
meta_data_cross_item = NULL,
meta_data_item_computation = NULL,
strata_column = NULL
)
Arguments
resp_vars |
variable list the name of the original variables. |
id_vars |
variable a vector containing the name/s of the variables containing ids |
vars_in_subgroup |
variable a vector containing the name/s of the variable/s mentioned inside the subgroup rule |
meta_data |
data.frame old name for |
meta_data_segment |
data.frame – optional: Segment level metadata |
meta_data_dataframe |
data.frame – optional if |
meta_data_cross_item |
data.frame – optional: Cross-item level metadata |
meta_data_item_computation |
data.frame – optional: Computed items metadata |
strata_column |
variable name of a study variable used to stratify the report by and to add as referred variable |
Value
a named list containing the referred variables and a new item_level metadata including information on the original variables and the referred variables