seqistatd {TraMineR} | R Documentation |
State frequencies in each individual sequence
Description
Returns the state frequencies (total durations) for each sequence in the sequence object.
Usage
seqistatd(seqdata, with.missing=FALSE, prop=FALSE)
Arguments
seqdata |
a sequence object (see |
with.missing |
logical: if set as |
prop |
logical: if |
Author(s)
Alexis Gabadinho
References
Gabadinho, A., G. Ritschard, N. S. Müller and M. Studer (2011). Analyzing and Visualizing State Sequences in R with TraMineR. Journal of Statistical Software 40(4), 1-37.
Ritschard, G. (2023), "Measuring the nature of individual sequences", Sociological Methods and Research, 52(4), 2016-2049. doi:10.1177/00491241211036156.
Examples
data(actcal)
actcal.seq <- seqdef(actcal,13:24)
seqistatd(actcal.seq[1:10,])
## Example using "with.missing" argument
data(ex1)
ex1.seq <- seqdef(ex1, 1:13, weights=ex1$weights)
seqistatd(ex1.seq)
seqistatd(ex1.seq, with.missing=TRUE)