View source: R/class_generic.R
BNPpart | R Documentation |
A constructor for the BNPpart
class. The class BNPpart
is a named list containing
the output of partition estimation methods.
BNPpart(partitions = NULL, scores = NULL, psm = NULL)
partitions |
a matrix, each row is a visited partition; |
scores |
a vector, each value is the score of a visited partition; |
psm |
a matrix, posterior similarity matrix. |
data_toy <- c(rnorm(100, -3, 1), rnorm(100, 3, 1)) grid <- seq(-7, 7, length.out = 50) est_model <- PYdensity(y = data_toy, mcmc = list(niter = 100, nburn = 10, nupd = 100), output = list(grid = grid)) part <- partition(est_model) class(part)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.