set_MH | R Documentation |
Set options for Metropolis-Hastings sampling
set_MH(type = "RWTN", scale = 0.025, adaptive = NULL, ...)
type |
a character string defining the proposal distribution. Among supported types are random walk proposals "RWTN", "RWN" and "RWLN" with truncated normal, normal and log-normal proposal distributions. Other choices correspond to independence proposals: "TN" for a truncated normal proposal, "unif" for a uniform proposal, and "beta" and "gamma" for specific beta and gamma proposal distributions. Not all types are supported for a particular parameter; see the specific help of the function defining the model component of interest to see which proposal distribution types are supported. |
scale |
in case of the "RWTN" proposal, the (initial) scale of the distribution. |
adaptive |
in case of the random walk "RWTN" or "RWN"
proposals, whether the scale parameter is adapted based on
acceptance rates during the burnin phase of the MCMC simulation.
The default is |
... |
additional parameters depending on the proposal type. Supported arguments are 'l' and 'u' to pass the lower and upper limits of uniform or random walk truncated normal proposals (defaults l=0 and u=1), and 'a' and 'b' to pass the shape parameters of a beta proposal distribution (defaults a = b = 0.5). |
An environment with variables and methods for Metropolis-Hastings sampling, for use by other package functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.