Last data update: 2014.03.03

R: Clustering statistics.
sttsR Documentation

Clustering statistics.

Description

stts clustering statistics information.

Usage

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

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

## S4 method for signature '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

# -- 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)
## Not run: 
# -- show clustering statistics of mybcpstack at stack level --
stts(mybcpstack)
# -- show individual statistics for path number 3 in mybcpstack --
stts(slct(mybcpstack,3))

## End(Not run)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(EMbC)
Loading required package: move
Loading required package: geosphere
Loading required package: sp
Loading required package: raster
Loading required package: rgdal
rgdal: version: 1.1-10, (SVN revision 622)
 Geospatial Data Abstraction Library extensions to R successfully loaded
 Loaded GDAL runtime: GDAL 1.11.3, released 2015/09/16
 Path to GDAL shared files: /usr/share/gdal/1.11
 Loaded PROJ.4 runtime: Rel. 4.9.2, 08 September 2015, [PJ_VERSION: 492]
 Path to PROJ.4 shared files: (autodetected)
 Linking to sp version: 1.2-3 
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/EMbC/stts.Rd_%03d_medium.png", width=480, height=480)
> ### Name: stts
> ### Title: Clustering statistics.
> ### Aliases: stts stts,binClst-method stts,binClstStck-method
> 
> ### ** Examples
> 
> # -- apply EMbC to the example path with solar covariate 'height'--
> mybcp <- stbc(expth,scv='height',info=-1)
[1]   0  -0.0000e+00       8       600
[1] ... Stable clustering
> # -- show clustering statistics --
> stts(mybcp,width=5,dec=1)
       X1.mn X1.sd X2.mn X2.sd X3.mn X3.sd     kn  kn(%)
 1 LLL  -5.7  13.1   0.8   0.6   0.6   0.4     55   9.17 
 2 LLH  -5.2  16.4   1.0   0.6   2.3   0.6    195  32.50 
 3 LHL -18.0   5.0   7.1   2.5   0.4   0.2     36   6.00 
 4 LHH -11.2   6.9  10.2   2.6   1.8   0.6     24   4.00 
 5 HLL  49.6  11.9   1.0   0.6   0.6   0.3     37   6.17 
 6 HLH  51.3  10.5   1.1   0.6   2.2   0.6    124  20.67 
 7 HHL  30.4  19.9   7.8   2.7   0.3   0.2     97  16.17 
 8 HHH  37.6  19.3   9.8   2.2   2.0   0.6     31   5.17 
> ## Not run: 
> ##D # -- show clustering statistics of mybcpstack at stack level --
> ##D stts(mybcpstack)
> ##D # -- show individual statistics for path number 3 in mybcpstack --
> ##D stts(slct(mybcpstack,3))
> ## End(Not run)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>