Learn R Programming

segclust2d (version 0.3.3)

prep_segm: Find segment and states for a Picard model

Description

prep_segm find the different segment and states of a given HMM model

Usage

prep_segm(data, param, seg.type = NULL, nseg = NULL)

Value

a data.frame with states of the different segments

Arguments

data

the data.frame with the different variable

param

the param output of the segmentation

seg.type

either 'hybrid' or 'dynprog'

nseg

number of segment chosen