Skip to contents

write_mdl_type_covars_mdls() is a Write function that writes a file to a specified local directory. Specifically, this function implements an algorithm to write model type covariates models. The function returns Summary of models with covariates (a tibble).

Usage

write_mdl_type_covars_mdls(
  data_tb,
  consent_1L_chr = "",
  consent_indcs_int = 1L,
  depnt_var_min_val_1L_dbl = numeric(0),
  depnt_var_nm_1L_chr = "utl_total_w",
  options_chr = c("Y", "N"),
  predrs_var_nms_chr,
  covar_var_nms_chr,
  mdl_type_1L_chr,
  path_to_write_to_1L_chr,
  new_dir_nm_1L_chr = "D_Covars_Selection",
  fl_nm_pfx_1L_chr = "D_CT",
  mdl_types_lup = NULL,
  start_1L_chr = NA_character_
)

Arguments

data_tb

Data (a tibble)

consent_1L_chr

Consent (a character vector of length one), Default: ''

consent_indcs_int

Consent indices (an integer vector), Default: 1

depnt_var_min_val_1L_dbl

Dependent variable minimum value (a double vector of length one), Default: numeric(0)

depnt_var_nm_1L_chr

Dependent variable name (a character vector of length one), Default: 'utl_total_w'

options_chr

Options (a character vector), Default: c("Y", "N")

predrs_var_nms_chr

Predictors variable names (a character vector)

covar_var_nms_chr

Covariate variable names (a character vector)

mdl_type_1L_chr

Model type (a character vector of length one)

path_to_write_to_1L_chr

Path to write to (a character vector of length one)

new_dir_nm_1L_chr

New directory name (a character vector of length one), Default: 'D_Covars_Selection'

fl_nm_pfx_1L_chr

File name prefix (a character vector of length one), Default: 'D_CT'

mdl_types_lup

Model types (a lookup table), Default: NULL

start_1L_chr

Start (a character vector of length one), Default: 'NA'

Value

Summary of models with covariates (a tibble)