Learn R Programming

dst (version 1.8.0)

ttmatrixFromMarginal: Construct tt matrix of a bca from marginal probabilities

Description

Construct tt matrix of a bca from marginal probabilities

Usage

ttmatrixFromMarginal(
  marg_probs,
  from_above = FALSE,
  simple = FALSE,
  min_prob = 0,
  max_prob = 2
)

Value

matrix of possible subsets obtained from the cuts

Arguments

marg_probs

marginal probabilities

from_above

=TRUE whether to cut marginal probabilities from above

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)
ttmatrixFromMarginal(x, FALSE)

Run the code above in your browser using DataLab