DPTreePosteriorMulti: D-P tree posterior updating from multiple copula...

Description Usage Arguments Value References Examples

View source: R/DPtree.R

Description

DPTreePosteriorMulti returns the D-P tree posterior given input copula data.

Usage

1
DPTreePosteriorMulti(x, prior, w = 1)

Arguments

x

An array of dimension n by 2. Multiple copula data observations, with each row being a bivariate copula observation. All elements should be between 0 and 1.

prior

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

w

A positive number or an array of length n. Weight of data for posterior updating. Default 1.

Value

A list.

a

An array containing the hyperparameters of D-P trees.

References

\insertRef

DPtreeDPtree

Examples

1
2
3
4
5
nsim = 10
rho = 0.9
data1 <- MASS::mvrnorm(n=nsim, mu=rep(0, 2), Sigma=matrix(c(1, rho, rho, 1), 2, 2))
data2 <- stats::pnorm(data1)
DPTreePosteriorMulti(x=data2, prior=DPTreePrior(m=4, z=1))

DPtree documentation built on May 2, 2019, 2:10 p.m.