get_SBC_config: Get the global package variable 'sbc_config'.

Description Usage Value Examples

View source: R/sbc_globals.R

Description

The configuration is a list of items.

cbc_quantiles

a named list of site-specific quantile functions for each CBC of interest

cbc_abnormals

a named list of site-specific functions that flag values as abnormal or not

cbc_vars

a list of names of CBC variables of interest, i.e. specific values of BASE_NAME

census_locations

a character vector locations that need to be used for modeling

c0

a value to use in training for c0

min_inventory

a value to use as offset to ensure a minimum threshold

history_window

how many days of history to use in training, default 200

penalty_factor

the penalty factor in training, default 15

start

the day when the model evaluation begins, default 10

initial_expiry_data

the number of units expiring a day after prediction begins and one day after that, i.e. a 2-vector

initial_collection_data

the number of units to collect on the prediction day, a day after, and another day after, i.e. a 3-vector

data_folder

full path of location of raw data files

report_folder

full path of where reports should go, must exist

output_folder

full path of where processed output data should go, must exist

log_folder

full path of where logs should go, must exist

model_update_frequency

how often to update the model, default 7 days

cbc_filename_prefix

a character expression describing the prefix of daily CBC file name, this is combined with the date is substituted with the date in YYYY-dd-mm format

census_filename_prefix

a character expression describing the prefix of daily census file name, this is combined with the date is substituted with the date in YYYY-dd-mm format

transfusion_filename_prefix

a character expression describing the prefix of daily transfusion file name, this is combined with the date is substituted with the date in YYYY-dd-mm format

output_filename_prefix

a character expression describing the prefix of daily output file name, this is combined with the date is substituted with the date in YYYY-dd-mm format

log_filename_prefix

a character expression describing the prefix of log file name, this is combined with the date is substituted with the date in YYYY-dd-mm format

inventory_filename_prefix

a character expression describing the prefix of the inventory file name, this is combined with the date is substituted with the date in YYYY-dd-mm format

Usage

1

Value

the value of package global sbc_config.

Examples

1

bnaras/SBCpip documentation built on May 5, 2019, 6:54 p.m.