get.cutoffs: Draw thresholds for the accept-reject stage of the BD...

Description Usage Arguments Details Value

Description

Returns a vector of log(u), where u is the threshold to determine if a proposal draw should be accepted as a draw from the target posterior distribution.

Usage

1
get.cutoffs(log.phi, n.draws)

Arguments

log.phi

Vector of log.phi from the proposal draws. All must be non-positive.

n.draws

an integer. number of draws to be taken from the target posterior.

Details

For use in conjunction with the Braun and Damien (2012) Generalized Direct Sampling algorithm. This is usually not called directly (and, thus, it is not exported), since it is called from the sample.GDS function.

Value

a numeric vector for v = -log.u (the thresholds for the accept-reject stage).


braunm/bayesGDS documentation built on May 13, 2019, 2:31 a.m.