powered by
calc_stat_states calculates statistics of a given segmentation : mean and variance of the different states.
calc_stat_states
calc_stat_states(data, df.segm, diag.var, order.var = NULL)
a data.frame with mean and variance of the different states
the data.frame with the different variable
output of prep_segm function
names of the variables on which statistics are calculated
names of the variable with which states are ordered
if (FALSE) calc_stat_states(data, diag.var = c("dist","angle"), order.var='dist', type='hmm',hmm.model=mod1.hmm)
Run the code above in your browser using DataLab