rASS: Adaptive Slice Sampling Algorithm With Stepping-Out...

Description Usage Arguments Author(s) References Examples

Description

rASS generates a sequence of random numbers by the adaptive slice sampling algorithm with stepping-out procedures.

Usage

1
rASS(n, x0 = 0, formula, w = 3)

Arguments

n

Desired sample size;

x0

Initial value;

formula

Target density function p(x);

w

Length of the coverage interval.

Author(s)

Dong Zhang <dzhang0716@126.com>

References

Neal R M. Slice sampling - Rejoinder[J]. Annals of Statistics, 2003, 31(3):758-767.

Examples

1
2
3
# Example 1: Sampling from exponential distribution with bounded domain
x<-rASS(100,-1,"1.114283*exp(-(4-x^2)^2)",3)
plot(density(x))

AdapSamp documentation built on May 1, 2019, 10:51 p.m.

Related to rASS in AdapSamp...