powered by
Implements the three mutation-rate strategies (ScaI, ScaII, ScaIII) described in the reference paper.
compute_mutation_rate( method = c("ScaI", "ScaII", "ScaIII"), beta_star, beta_init, L, N_chain )
List with components:
Mutation-rate vector (length 2, r, or N_chain).
Base mutation rate (scalar).
Scalar, present only for ScaII - number of active components.
Vector, present only for ScaIII - normalized random weights.
Character, one of "ScaI", "ScaII", "ScaIII".
Target parameter vector (binary or factor).
Current/initial parameter vector.
Integer > 0, length of the parameter vector.
Integer > 1, number of parallel chains.
beta_star <- c(1, 0, 1, 1, 0) beta_init <- c(1, 1, 1, 0, 0) compute_mutation_rate("ScaII", beta_star, beta_init, L = 5, N_chain = 8)
Run the code above in your browser using DataLab