Learn R Programming

dst (version 1.8.0)

mFromMarginal: Construct m vector of a bca from marginal probabilities

Description

Construct m vector of a bca from marginal probabilities

Usage

mFromMarginal(
  marg_probs,
  a = 1e-05,
  simple = FALSE,
  min_prob = 0,
  max_prob = 2
)

Value

vector of probability masses obtained from uniformly sampling the cut

Arguments

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

Author

Peiyuan Zhu

Examples

Run this code
x <- c(2,2,1.5,1.2,1,0,0)
mFromMarginal(x, simple=FALSE)

Run the code above in your browser using DataLab