smi_sec_5_3_compute_mcmc: Compute MCMC in agricultural model

Description Usage Arguments

View source: R/smi_sec_5_3.R

Description

Compute MCMC used in section 5.3

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
smi_sec_5_3_compute_mcmc(
  out_dir,
  eta_all = seq(0.1, 1, by = 0.1),
  force_compute_mcmc = FALSE,
  n_iter = 1e+05,
  n_iter_sub = 100,
  n_warmup = 10000,
  n_thin = 3,
  n_epoch_adapt = 5,
  n_iter_adapt = 1000,
  seed = 123
)

Arguments

out_dir

Directory where outputs are stored

eta_all

Levels of influence of the PO 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_thin

Number of iterations used for thinning

n_epoch_adapt

Number of epochs for adaptation of proposal distributions

n_iter_adapt

Number of iterations in each adaptation epoch

seed

Set random seed before MCMC starts for reproducibility


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