Learn R Programming

DPtree (version 1.0.1)

DPTreePrior: Generating the standard D-P Tree prior

Description

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

Usage

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\times i^2\). Default z=1.

Value

A list.

a

An array containing the hyperparameters of D-P trees.

References

DPtreeDPtree

Examples

Run this code
# NOT RUN {
DPTreePrior(m=6, z=1)
# }

Run the code above in your browser using DataLab