DPTreePrior function

Generating the standard D-P Tree prior

Generating the standard D-P Tree prior

DPTreePrior returns a standard D-P Tree prior based on specified hyperparameters.

DPTreePrior(m = 4, z = 1)

Arguments

  • m: A positive integer. The finite approximation level for D-P tree. Default m=4.
  • z: A positive number. On i-th level, the hyperparameter for D-P tree prior is z×i2z\times i^2. Default z=1.

Returns

A list. - a: An array containing the hyperparameters of D-P trees.

Examples

DPTreePrior(m=6, z=1)

References

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

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

Useful links