RealizeDPTree function

Sampling a realized distribution from the D-P Tree.

Sampling a realized distribution from the D-P Tree.

RealizeDPTree returns a realized (copula) distribtuion sampled from the input D-P Tree.

RealizeDPTree(prior)

Arguments

  • prior: A list. Should be in same format as returned from DPTreePrior.

Returns

An array of dimension 2m2^m by 2m2^m by m. m is the approximation level. Realized Z's for all partitions at each level. Three dimensions reprensent two marginals, and the level respectively.

Examples

RealizeDPTree(DPTreePrior(m=2, z=1))

References

Rdpack::insert_ref(key="DPtree",package="DPtree")

  • Maintainer: Shaoyang Ning
  • License: MIT + file LICENSE
  • Last published: 2018-06-19

Useful links