Learn R Programming

EMbC (version 2.0.4)

stts: Clustering statistics.

Description

stts clustering statistics information.

Usage

stts(obj, dec = 2, width = 8)

# S4 method for binClst stts(obj, dec = 2, width = 8)

# S4 method for binClstStck stts(obj, dec = 2, width = 8)

Arguments

obj

Either a binClst_instance or a binClstStck instance. In the latter case statistics are given at stack level.

dec

The number of decimals for mean/stdv formatting.

width

The number of digits for mean/stdv formatting.

Details

This method prints a line for each cluster with the following information: the cluster number, the cluster binary label, the cluster mean and variance of each input feature (two columns for each variable), and the size of the cluster in number and proportion of points (the posterior marginal distribution).

Examples

Run this code
# -- apply EMbC to the example path with solar covariate 'height'--
mybcp <- stbc(expth,scv='height',info=-1)
# -- show clustering statistics --
stts(mybcp,width=5,dec=1)
if (FALSE) {
# -- show clustering statistics of mybcpstack at stack level --
stts(mybcpstack)
# -- show individual statistics for path number 3 in mybcpstack --
stts(slct(mybcpstack,3))
}

Run the code above in your browser using DataLab