Shrink: Shrink

View source: R/Shrink.R

ShrinkR Documentation

Shrink

Description

Slice sampler: shrinkage procedure Neal(2003) fig.5

Usage

Shrink(foo, x0, y0, L, R, m = 100, Rmx = 475, Lmin = 20)

Arguments

foo

function (required) function proportional to the density

x0

numeric (required) the current point

y0

numeric (required) the vertical level defining the slice

L

numeric (required) left boundary of the interval to sample from

R

numeric (required) right boundary of the interval to sample from

m

numeric (with default)

Rmx

numeric (with default)

Lmin

numeric (with default)

Value

a list with the following elements

**Elements Type Description

$x1numeric the new point

$L numeric the new left boundary of the slice

$R numeric the new right boundary of the slice


Zink-Antoine/Slice_sampler documentation built on Feb. 27, 2025, 9:23 p.m.