calc_stat_states: Calculate state statistics

View source: R/function_prepare.R

calc_stat_statesR Documentation

Calculate state statistics

Description

calc_stat_states calculates statistics of a given segmentation : mean and variance of the different states.

Usage

calc_stat_states(data, df.segm, diag.var, order.var = NULL)

Arguments

data

the data.frame with the different variable

df.segm

output of prep_segm function

diag.var

names of the variables on which statistics are calculated

order.var

names of the variable with which states are ordered

Value

a data.frame with mean and variance of the different states

Examples

## Not run: calc_stat_states(data, diag.var = c("dist","angle"),
order.var='dist', type='hmm',hmm.model=mod1.hmm)
## End(Not run)

rpatin/segclust2d documentation built on April 24, 2024, 2:22 a.m.