| summary.DPMMclust {NPflow} | R Documentation |
Summarizing Dirichlet Process Mixture Models
Description
Summary methods for DPMMclust objects.
Usage
## S3 method for class 'DPMMclust'
summary(
object,
burnin = 0,
thin = 1,
gs = NULL,
lossFn = "Binder",
posterior_approx = FALSE,
...
)
Arguments
object |
a |
burnin |
integer giving the number of MCMC iterations to burn (defaults is half) |
thin |
integer giving the spacing at which MCMC iterations are kept.
Default is |
gs |
optional vector of length |
lossFn |
character string specifying the loss function to be used. Either "F-measure" or "Binder" (see Details). Default is "Binder". |
posterior_approx |
logical flag whether a parametric approximation of the posterior should be
computed. Default is |
... |
further arguments passed to or from other methods |
Details
The cost of a point estimate partition is calculated using either a pairwise coincidence loss function (Binder), or 1-Fmeasure (F-measure).
The number of retained sampled partitions is m = (N - burnin)/thin
Value
a list containing the following elements:
nb_mcmcit:an integer giving the value of
m, the number of retained sampled partitions, i.e.(N - burnin)/thinburnin:an integer passing along the
burninargumentthin:an integer passing along the
thinargumentlossFn:a character string passing along the
lossFnargumentclust_distrib:a character string passing along the
clust_distribargumentpoint_estim:a
listcontaining:c_est:a vector of length
ncontaining the point estimated clustering for each observationscost:a vector of length
mcontaining the cost of each sampled partitionFmeas:if
lossFnis'F-measure', them x mmatrix of total F-measures for each pair of sampled partitionsopt_ind:the index of the point estimate partition among the
msampled
loss:the loss for the point estimate.
NAiflossFnis not'Binder'param_posterior:a list containing the parametric approximation of the posterior, suitable to be plugged in as prior for a new MCMC algorithm run
mcmc_partitions:a list containing the
msampled partitionsalpha:a vector of length
mwith the values of thealphaDP parameterindex_estim:the index of the point estimate partition among the
msampledhyperG0:a list passing along the prior, i.e. the
hyperG0argumentlogposterior_list:a list of length
mcontaining the logposterior and its decomposition, for each sampled partitionU_SS_list:a list of length
mcontaining the containing the lists of sufficient statistics for all the mixture components, for each sampled partitiondata:a
d x nmatrix containing the clustered data
Author(s)
Boris Hejblum