stat_segm calculates statistics of a given segmentation : mean and variance of the different states. it also creates standard objects for plot.

stat_segm(
  data,
  diag.var,
  order.var = NULL,
  param = NULL,
  seg.type = NULL,
  nseg
)

Arguments

data

the data.frame with the different variable

diag.var

names of the variables on which statistics are calculated

order.var

names of the variable with which states are ordered

param

parameters of output segmentation

seg.type

either 'hybrid' or 'dynprog'

nseg

number of segment chosen

Value

a list which first element is a data.frame with states of the different segments and which second element is a data.frame with mean and variance of the different states

Examples

if (FALSE) {
#res.segclust is a result of a segmentation-clustering algorithm
param <- res.segclust$param[["3 class"]]
nseg = 10
out <- stat_segm(data, diag.var = c("dist","angle"),
 order.var = "dist", param = param, nseg=nseg, seg.type = "segclust")

}