Usage
metropSB(fn, start, deltap = NULL, scale = 1, rptfreq = -1, acceptscale
= 1.01, rejectscale = 0.99, nmax = 10000,
retvals = FALSE, retfreq = 100, verbose = FALSE, ...)
Arguments
fn
Objective function, taking a vector of parameters as its
first argument. The function is minimized, so it should be a
negative log-likelihood or a negative log-posterior density.
start
Vector of starting values
deltap
Starting jump size; half-width of uniform distribution
scale
Scaling factor for acceptance
rptfreq
Frequency for reporting interim results (
acceptscale
Amount to inflate candidate distribution if last
jump was accepted
rejectscale
Amount to shrink candidate distribution if last
jump was rejected
retvals
Return detailed statistics?
retfreq
Sampling frequency for detailed statistics