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)
1 | mvtnormSelectionProbs(y, mu, sigma, threshold, selected = NULL)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.