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
)
the data.frame with the different variable
names of the variables on which statistics are calculated
names of the variable with which states are ordered
parameters of output segmentation
either 'hybrid' or 'dynprog'
number of segment chosen
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
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")
}