mvtnormSelectionProbs: A function for computing the probability of positive/negative...

Description Usage Arguments

View source: R/Rsamplers.R

Description

This function uses the mvtnorm package to compute the probability of positive and negative selection events of selective ROI problems. The selection event is assumed to be, selected > threshold or selected < -threshold (with coordinates which were not selected not satisfying the selection event)

Usage

1
mvtnormSelectionProbs(y, mu, sigma, threshold, selected = NULL)

Arguments

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.