util_dichotomize {dataquieR} | R Documentation |
Utility function to dichotomize variables
Description
This function uses the metadata attributes RECODE_CASES
and/or
RECODE_CONTROL
to dichotomize the data. 'Cases' will be recoded to 1,
'controls' to 0. The recoding can be specified by an interval (for metric
variables) or by a list of categories separated by the 'SPLIT_CHAR'. Recoding
will be used for data quality checks that include a regression model.
Usage
util_dichotomize(study_data, meta_data, label_col = VAR_NAMES)
Arguments
study_data |
study data without jump/missing codes as specified in the code conventions |
meta_data |
metadata as specified in the code conventions |
label_col |
variable attribute the name of the column in the metadata with labels of variables |
See Also
Other data_management:
util_assign_levlabs()
,
util_check_data_type()
,
util_check_group_levels()
,
util_compare_meta_with_study()
,
util_fix_merge_dups()
,
util_merge_data_frame_list()
,
util_rbind()
,
util_remove_na_records()
,
util_replace_hard_limit_violations()
,
util_round_to_decimal_places()
,
util_study_var2factor()
,
util_table_of_vct()