View source: R/mFromMarginal.R
mFromMarginal | R Documentation |
Construct m vector of a bca from marginal probabilities
mFromMarginal(
marg_probs,
a = 1e-05,
simple = FALSE,
min_prob = 0,
max_prob = 2
)
marg_probs |
vector of marginal probabilities |
a |
=1e-5 probability that the sample is reliable |
simple |
=TRUE whether to use simple support function |
min_prob |
=0 lower bound on marginal probabilities |
max_prob |
=2 upper bound on marginal probabilities |
vector of probability masses obtained from uniformly sampling the cut
Peiyuan Zhu
x <- c(2,2,1.5,1.2,1,0,0)
mFromMarginal(x, simple=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.