Generate a sample from a probability distribution with the shrinking-rank slice sampling method.
shrinking.rank.sample(target.dist, x0, sample.size, tuning=1,
downscale=0.95, min.dimension=1)
A list with elements X
, evals
, and grads
,
following the calling convention of compare.samplers
.
Target distribution; see make.dist
.
Numeric vector containing initial state.
Requested sample size.
A tuning parameter; corresponds to \(\sigma_c\) in sec. 5 of Thompson and Neal (2010).
Factor to reduce crumb standard deviation by when a proposal is rejected.
The minimum dimension to sample crumbs from.
shrinking.rank.slice.sample
implements the shrinking-rank
method of slice sampling, as described by Thompson and Neal (2010). It
can be passed to compare.samplers
in the samplers
list argument.
Thompson, M. B. and Neal, R. M. (2010). Covariance-adaptive slice sampling. Technical Report TR-1002, Dept. of Statistics, University of Toronto.
compare.samplers
cov.match.sample