uni.slice: Univariate slice sampling (Radford M. Neal (2008))

Description Usage Arguments Examples

Description

Performs a slice sampling update from an initial point to a new point that leaves invariant the distribution with the specified log density function.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
uni.slice(
  x0,
  g,
  w = 1,
  m = Inf,
  lower = -Inf,
  upper = +Inf,
  gx0 = NULL,
  uni.slice.calls = 0,
  uni.slice.evals = 0
)

Arguments

x0

Initial point

g

Function returning the log of the probability density (plus constant)

w

Size of the steps for creating interval, defaults to 1

m

Limit on steps, defaults to

lower

Lower bound on support of the distribution, defaults to -∞

upper

Upper bound on support of the distribution, defaults to +∞

gx0

Value of g(x0), if known, defaults to not known

Examples

1

shariq-mohammed/stSpikeSlabEEG documentation built on Aug. 2, 2020, 11:44 a.m.