Frequencies of state co-occurrence patterns

Description

Computes the frequencies of co-occurring state patterns.

Usage

1
  seqtabstocc(seqdata, ...)

Arguments

seqdata

A state sequence (stslist) object as returned by seqdef.

...

Additional arguments to be passed to seqtab.

Details

The function extracts the list of states co-occurring in each sequence. For each sequence, the co-occurring states are extracted as the sequence of the alphabetically sorted distinct states. The frequencies of the extracted sets of states is then obtained by means of the TraMineR seqtab function.

Value

A stslist.freq object.

Author(s)

Gilbert Ritschard

Examples

1
2
3
4
5
6
7
8
9
## Creating a sequence object from the first 500 actcal data.
data(actcal)
actcal.seq <- seqdef(actcal[1:500,13:24])

## 10 most frequent state patterns in the data
seqtabstocc(actcal.seq)

## All state patterns
seqtabstocc(actcal.seq, tlim=0)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.