Learn R Programming

shallot (version 0.4.1)

process.samples: Process Sampled Partitions

Description

This function extracts the partitions from the results of the sample.partitions function.

Usage

process.samples(x, as.matrix = TRUE, expand = FALSE, sample.parameter = FALSE)

Arguments

x

An object from the sample.partitions function.

as.matrix

Should the results be returned as a matrix of cluster labels or list of partitions?

expand

If TRUE, a matrix of item-specific parameter values is returned. This requires that cluster parameters are scalars?

sample.parameter

A function taking no arguments and returning a random sample from the centering distribution.

Value

A list containing either: i. a matrix of cluster labels in which each row represents a clusterings, or ii. a list containing partitions. The list also contains sampled model parameters if sample.parameter is not NULL.

Details

This function extracts the sampled partitions from the results of the sample.partitions function.

See Also

sample.partitions

Examples

Run this code
# NOT RUN {
example(shallot)
# }

Run the code above in your browser using DataLab