rejectsampling: Rejecting sampling using a t proposal density

Description Usage Arguments Value Author(s) Examples

Description

Implements a rejection sampling algorithm for a probability density using a multivariate t proposal density

Usage

1
rejectsampling(logf,tpar,dmax,n,data)

Arguments

logf

function that defines the logarithm of the density of interest

tpar

list of parameters of t proposal density including the mean m, scale matrix var, and degrees of freedom df

dmax

logarithm of the rejection sampling constant

n

number of simulated draws from proposal density

data

data and or parameters used in the function logf

Value

matrix of simulated draws from density of interest

Author(s)

Jim Albert

Examples

1
2
3
4
5


Search within the LearnBayes package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.