check_run_stage_args | R Documentation |
Takes the arguments to run_stage and checks them for completeness and correctness. Returns a list of cleaned/checked arguments to the caller.
check_run_stage_args(
pmwgs,
stage,
iter,
particles,
display_progress,
n_cores,
n_unique,
epsilon,
subj_epsilon,
p_accept,
mix,
pdist_update_n
)
pmwgs |
A Particle Metropolis within Gibbs sampler which has been set up and initialised |
stage |
The sampling stage to run. Must be one of |
iter |
The number of iterations to run for the sampler. For
|
particles |
The default here is 1000 particles to be generated for each iteration, however during the sample phase this should be reduced. |
display_progress |
Display a progress bar during sampling. |
n_cores |
Set to more than 1 to use |
n_unique |
A number representing the number of unique samples to check
for on each iteration of the sampler (An initial test for the generation
of the proposal distribution). Only used during the |
epsilon |
A value between 0 and 1 that controls the extent to which the covariance matrix is scaled when generating particles from the previous random effect. The default will be chosen based on the number of random effects in the model. |
p_accept |
A value between 0 and 1 that will flexibly tune epsilon to achieve an acceptance ratio close to what you set p_accept to. The default is set at 0.8. |
mix |
A vector of floats that controls the mixture of different sources
for particles. The function |
pdist_update_n |
The number of iterations in the sample stage after which the proposal distribution will be recomputed. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.