smi_sec_5_4_compute_mcmc: Compute MCMC in HPV model

Description Usage Arguments

View source: R/smi_sec_5_4.R

Description

Compute MCMC used in section 5.3

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
smi_sec_5_4_compute_mcmc(
  out_dir,
  eta_all = seq(0.1, 1, by = 0.1),
  force_compute_mcmc = FALSE,
  n_iter = 5000,
  n_iter_sub = 500,
  n_warmup = 1000,
  n_cores = 8,
  seed = 123,
  pkg_dir = system.file(package = "aistats2020smi")
)

Arguments

out_dir

Directory where outputs are stored

eta_all

Levels of influence of the Poisson module

force_compute_mcmc

To avoid computation time, completed MCMC is not recomputed, unless force_compute_mcmc is True

n_iter

Number of iterations in the main chain

n_iter_sub

Number of iterations in the sub-chain for the two-stage MCMC

n_warmup

Number of iterations used for warm-up

n_cores

Number of cores used by stan

seed

Set random seed before MCMC starts for reproducibility

pkg_dir

Internal directory where the package is installed. Used to retrieve stan scripts for the HPV model.


christianu7/aistats2020smi documentation built on March 7, 2021, 2:40 p.m.