sliceSamplerROI: A slice sampler for sampling from the ROI selection event

Description Usage Arguments

View source: R/Rsamplers.R

Description

Selection event is assumed to be, selected > threshold or selected < -threshold (with coordinates which were not selected not satisfying the selection event)

Usage

1
sliceSamplerROI(nsamp, y, mu, sigma, threshold, selected = NULL)

Arguments

nsamp

number of samples to be taken

y

the observed normal vector, or an initial sample point that satisfies the selection event

mu

the mean vector of the (untruncated) normal vector

sigma

the covariance of the (untruncated) normal vector

threshold

a vector of size length(y), the selection threshold

selected

which coordinates were selected? if NULL function will attempt to figure it out on its own but my fail if there are both observations that are larger than threshold and observations that are smaller than -threshold.


ammeir2/selectiveROI documentation built on March 16, 2020, 1:30 a.m.