Skip to contents

make_ds_descvs_ls() is a Make function that creates a new R object. Specifically, this function implements an algorithm to make dataset descriptives list. The function returns Dataset descriptives (a list).

Usage

make_ds_descvs_ls(
  candidate_predrs_chr,
  cohort_descv_var_nms_chr,
  dictionary_tb,
  id_var_nm_1L_chr,
  msrmnt_date_var_nm_1L_chr,
  round_var_nm_1L_chr,
  round_vals_chr,
  maui_item_pfx_1L_chr,
  utl_wtd_var_nm_1L_chr = "wtd_utl_dbl",
  utl_unwtd_var_nm_1L_chr = "unwtd_utl_dbl",
  candidate_covar_nms_chr = NULL,
  is_fake_1L_lgl = NULL
)

Arguments

candidate_predrs_chr

Candidate predictors (a character vector)

cohort_descv_var_nms_chr

Cohort descriptive variable names (a character vector)

dictionary_tb

Dictionary (a tibble)

id_var_nm_1L_chr

Identity variable name (a character vector of length one)

msrmnt_date_var_nm_1L_chr

Measurement date variable name (a character vector of length one)

round_var_nm_1L_chr

Round variable name (a character vector of length one)

round_vals_chr

Round values (a character vector)

maui_item_pfx_1L_chr

Multi-attribute utility instrument item prefix (a character vector of length one)

utl_wtd_var_nm_1L_chr

Utility weighted variable name (a character vector of length one), Default: 'wtd_utl_dbl'

utl_unwtd_var_nm_1L_chr

Utility unweighted variable name (a character vector of length one), Default: 'unwtd_utl_dbl'

candidate_covar_nms_chr

Candidate covariate names (a character vector), Default: NULL

is_fake_1L_lgl

Is fake (a logical vector of length one), Default: NULL

Value

Dataset descriptives (a list)