seqibad | R Documentation |
Badness index of each sequence, i.e. the sum of undesirableness of each state weighted by the potential to integrate that state in the sequence.
seqibad(seqdata, pow=1, with.missing=FALSE, ...)
seqdata |
a state sequence object ( |
pow |
real. Exponent applied to the position in the sequence. Higher value increase the importance of recency (see |
with.missing |
logical: should non-void missing values be treated as a regular state? If |
... |
arguments such as |
For each sequence, the badness is the sum of the undesirableness of each state weighted by the potential to integrate the state. As long as pow
is strictly greater than zero, the undesirableness of states occurring at the end of the sequence get higher weights than those at the beginning. The index reaches its maximum 1 for a sequence made of a single spell in the worst state and the minimum 0 for a sequence made of a single spell is the most favorable state.
A vector with the badness index for each sequence.
Gilbert Ritschard
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")}.
seqintegr
, seqidegrad
, seqprecarity
data(ex1)
sx <- seqdef(ex1[,1:13], right="DEL")
seqibad(sx) ## using original alphabet order
seqibad(sx, stprec=c(1,2,3,6)) ## user defined undesirableness values
seqibad(sx, with.missing=TRUE, state.order=c('A','B','C','D'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.