Usage
stop_chain(y, blocks_remaining, start_Zs, start_logit_omegas, start_log_phis,
temperatures, tolerance = 1, confidence = 0.95, simulations = 1000,
marginal_likelihood_only = TRUE,
quit_if_highest_possible_BF_less_than = -Inf,
y_log_lik_t_equals_1_traces = matrix(ncol = length(temperatures), nrow = 0),
full_block_traces = list(), verbose = FALSE, ...)
Arguments
y
Logical vector of case (TRUE) control (FALSE) status.
blocks_remaining
Maximum number of blocks left before termination.
start_Zs
Initial (logical) Z-matrix.
start_logit_omegas
Initial values of logit_omega (numeric vector - one value per chain).
start_log_phis
Initial values of log_phi (numeric vector - one value per chain).
temperatures
Numeric vector of temperatures of power posteriors. One chain will be created for each element of the vector at the corresponding temperature.
tolerance
Maximum width for confidence_interval of log marginal likelihood to allow before stopping the chain.
confidence
Numeric value of statistical confidence with which returning interval should contain the true value.
simulations
Integer value of number of simulations to use in estimation of the confidence interval.
marginal_likelihood_only
Logical value determining whether to only return the estimated log marginal likelihood of the data under v as a numeric value, or to return an object of class BeviMed containing the full output of the MCMC sampling routine.
quit_if_highest_possible_BF_less_than
Numeric value used to determine whether to stop the sampling after consecutive blocks. If we are confident (to the extent given by the parameter confidence) that log Bayes factor of v against n is under this value, we stop the sampling as soo
y_log_lik_t_equals_1_traces
Numeric matrix of log probabilities of y at different temperatures (columns) in different iterations (rows).
full_block_traces
List of outputs of calls to MCMC routine.
verbose
To print execution progress or not.