dmm.states: Constructing list of all states from dmm.cluster run...

Description Usage Arguments Details

View source: R/dmm_cluster.R

Description

Constructing list of all states from dmm.cluster run (excluding burnin).

Usage

1
dmm.states(juliastates, paramnames = NULL)

Arguments

juliastates

The object returned by Julia code

paramnames

Optionally. A list of the parameter names. Returned by Julia code for most bulit-in models.

Details

Each item in the list (i.e. state = states[[i]]) is a state. A state is also a list. A state has two fields: data and clusters.

data is a data.frame of the data points and their cluster labels. clusters is either a list or a data.table (if the data.table package is loaded by the user). It conatins (1) cluster labels, (2) the number of data points (i.e. population) of each cluster, and (3) all of the parameters for each cluster.

If clusters is a data.table, each row refers to a cluster. Columns are the cluster label, the population, and the rest of the columns are parameters.

If clusters is a list, each element of the list refers to a clsuter, clusters[[i]] is a list containing of the above information for cluster i as elements. E.g. clusters[[1]]$population is the population of cluster 1. The params field (clusters[[i]]$params) is itself a list of each of the parameters


nsdumont/jDirichletMixtureModels documentation built on May 23, 2019, 2:51 p.m.