Generate a Parameter List for MJMCMC (Mode Jumping MCMC)
gen.params.mjmcmc(ncov)A list of parameters to use when running the mjmcmc function.
The list contains the following elements:
burn_inThe burn-in period for the MJMCMC algorithm, which is set to 100 iterations by default.
mhA list containing parameters for the regular Metropolis-Hastings (MH) kernel:
neigh.sizeThe size of the neighborhood for MH proposals with fixed proposal size, default set to 1.
neigh.minThe minimum neighborhood size for random proposal size, default set to 1.
neigh.maxThe maximum neighborhood size for random proposal size, default set to 2.
largeA list containing parameters for the large jump kernel:
neigh.sizeThe size of the neighborhood for large jump proposals with fixed neighborhood size, default set to the smaller of 0.35 \(\times p\) and 35, where \(p\) is the number of covariates.
neigh.minThe minimum neighborhood size for large jumps with random size of the neighborhood, default set to the smaller of 0.25 \(\times p\) and 25.
neigh.maxThe maximum neighborhood size for large jumps with random size of the neighborhood, default set to the smaller of 0.45 \(\times p\) and 45.
randomA list containing a parameter for the randomization kernel:
probThe small probability of changing the component around the mode, default set to 0.01.
saA list containing parameters for the simulated annealing kernel:
probsA numeric vector of length 6 specifying the probabilities for different types of proposals in the simulated annealing algorithm.
neigh.sizeThe size of the neighborhood for the simulated annealing proposals, default set to 1.
neigh.minThe minimum neighborhood size, default set to 1.
neigh.maxThe maximum neighborhood size, default set to 2.
t.initThe initial temperature for simulated annealing, default set to 10.
t.minThe minimum temperature for simulated annealing, default set to 0.0001.
dtThe temperature decrement factor, default set to 3.
MThe number of iterations in the simulated annealing process, default set to 12.
greedyA list containing parameters for the greedy algorithm:
probsA numeric vector of length 6 specifying the probabilities for different types of proposals in the greedy algorithm.
neigh.sizeThe size of the neighborhood for greedy algorithm proposals, set to 1.
neigh.minThe minimum neighborhood size for greedy proposals, set to 1.
neigh.maxThe maximum neighborhood size for greedy proposals, set to 2.
stepsThe number of steps for the greedy algorithm, set to 20.
triesThe number of tries for the greedy algorithm, set to 3.
loglikA list to store log-likelihood values, which is by default empty.
Note that the $loglik item is an empty list, which is passed to the log likelihood function of the model,
intended to store parameters that the estimator function should use.
The number of covariates in the dataset that will be used in the algorithm
gen.params.mjmcmc(matrix(rnorm(600), 100))
Run the code above in your browser using DataLab