mrfrj | R Documentation |
A Metropolis-Hastings algorithm that allows jumps over spaces of different dimensions. This algorithm allows spaces with restrictions (zero equality) to be visitted, providing a model selection framework along with the Bayesian solution for inference within models.
mrfrj(
z,
llapprox,
nsamples = 1000,
init_theta = "zero",
init_included = "zero",
sdprior = 1,
sdkernel = 0.005,
sdbirth = 0.05,
kernel_probs = c(4, 1, 1, 1, 1),
logpenalty = log(prod(dim(z))),
verbose = interactive()
)
z |
The observed random field. |
llapprox |
The likelihood approximation to be used. |
nsamples |
Number of MCMC samples. |
init_theta |
Initial values of the MCMC algorithm. Set to "zero" to
automatically create a vector equal to zero with appropriate length or
"pl" to use the Maximum Pseudolikelihood estimator of |
sdprior |
Sample Deviation of the Normal distributions used as prior. |
sdkernel |
Sample Deviation of the Normal distributions of the transition kernel. |
An object of class mrfbayes_out
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.