Learn R Programming

TraMineR (version 1.0)

seqstatd: States frequency table and entropy

Description

Returns the state frequencies, the number of valid states and the entropy of the states distribution for each time unit.

Usage

seqstatd(seqdata, digits=2, norm=TRUE)

Arguments

seqdata
a sequence object (see seqdef function).
digits
number of digits for the rounding of the results. Default to 2, set to NULL if you don't want any rounding.
norm
if TRUE (the default value), entropy is normalized, ie divided by the entropy of the alphabet. Set to FALSE if you want the entropy without normalization.

See Also

seqdplot.

Examples

Run this code
data(biofam)
biofam.seq <- seqdef(biofam,10:25)
sd <- seqstatd(biofam.seq)
barplot(sd$Entropy, main="Entropy of the states distribution, by age",
        ,xlab="Age",ylab="Entropy",col="green")

Run the code above in your browser using DataLab