Description Usage Arguments Value References Examples
DPTreePosterior
returns
the D-P tree posterior given input copula data.
1 | DPTreePosterior(x, prior, w = 1)
|
x |
An array of length 2. Single copula data observation. Each element should be between 0 and 1. |
prior |
A list. Should be in same format as returned from |
w |
A positive number. Weight of data for posterior updating. Default 1. |
A list.
a |
An array containing the hyperparameters of D-P trees. |
DPtreeDPtree
1 2 3 4 5 | nsim = 1
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)
DPTreePosterior(x=data2, prior=DPTreePrior(m=4, z=1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.