seqistatd | R Documentation |
Returns the state frequencies (total durations) for each sequence in the sequence object.
seqistatd(seqdata, with.missing=FALSE, prop=FALSE)
seqdata |
a sequence object (see |
with.missing |
logical: if set as |
prop |
logical: if |
Alexis Gabadinho
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. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1177/00491241211036156")}.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.