vignettes/LDATS_codebase.Rmd
LDATS_codebase.RmdThis vignette outlines the code base for the LDATS package. It was constructed using LDATS version 0.2.7 on 2020-03-19.
To obtain the most recent version of LDATS, install the most recent version from GitHub:
The full LDATS analysis can be executed using the LDA_TS function, which is the top-level of the coding pipeline’s hierarchy of functions:
LDA_TS()
check_LDA_TS_inputs()
LDA_set()
check_LDA_TS_inputs()
prep_LDA_control()LDA()select_LDA()
measurer and selector functions supplied via LDA_controls_list()
TS_on_LDA()
check_LDA_TS_inputs()
expand_TS()prep_TS_data()TS()
check_TS_inputs()
est_changepoints()
prep_saves()prep_ptMCMC_inputs()prep_cpts()
prep_ids()prep_pbar()update_pbar()step_chains()
propose_step()
proposed_step_mods()
eval_step()take_step()swap_chains()
update_saves()update_cpts()update_ids()est_regressors()
multinom_TS()mirror_vcov()rmvnorm()summarize_TS()
select_TS()
measurer and selector functions supplied via TS_controls_list()
package_LDA_TS()Each component model’s function (LDA_set() and TS()) can be run independently, as well.
To minimize the length of argument lists and facilitate simple default usage throughout the pipeline, we implement an options/controls list approach, where each of the main functions (LDA_TS, LDA_set, and TS) and its subfunctions have a control argument that takes a list to replace the defaults returned by its _control function: