Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

seqintegration

Integrative potential


Description

Returns the index of integrative potential for each sequence, either a table with the index for each state or a vector with the index for the selected state.

Usage

seqintegration(seqdata, state=NULL, pow=1, with.missing=FALSE)

Arguments

seqdata

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

state

character string. The state for which to compute the integration index (see Details). When NULL the index is computed for each state.

pow

real. Exponent applied to the position in the sequence. Higher value increase the importance of recency (see Details). Default is 1.

with.missing

logical: should non-void missing values be treated as a regular state? If FALSE (default) missing values are ignored.

Details

The index of integrative potential (Brzinsky-Fay, 2007, 2018) measures the capacity to integrate the selected state within the sequence, i.e. the tendency to reach the selected state and end up in it. The index is defined as the sum of the position numbers occupied by the selected state in the sequence over the sum of all position numbers. Formally, for a sequence s of length L, and numbering the positions i from 1 to L, the index is

sum (s_i == state)*i^pow / sum i^pow

where state is the selected state. This same index has also been independently developed by Manzoni and Mooi-Reci (2018) under the name of quality index.

The exponent pow permits to control the focus given on the latest positions in the sequence. The higher pow, the higher the importance of the last positions relative to the first ones.

When with.missing = FALSE, the index is adjusted by subtracting the sum of the positions numbers of the missings from the denominator. To compute the index for the missing state, with.missing should be set as TRUE.

Value

when state=NULL, a numeric matrix with a row for each sequence and a column by state and a single column when a state is provided.

Author(s)

Gilbert Ritschard

References

Brzinsky-Fay, C. (2007) Lost in Transition? Labour Market Entry Sequences of School Leavers in Europe, European Sociological Review, 23(4). DOI: 10.1093/esr/jcm011

Brzinsky-Fay, C. (2018) Unused Resources: Sequence and Trajectory Indicators. International Symposium on Sequence Analysis and Related Methods, Monte Verita, TI, Switzerland, October 10-12, 2018.

Manzoni, A and I. Mooi-Reci (2018) Measuring Sequence Quality, in Ritschard and Studer (eds), Sequence Analysis and Related Approaches. Innovative Methods and Applications, Springer, 2018, pp 261-278.

See Also

Examples

data(ex1)
sx <- seqdef(ex1[,1:13], right="DEL")

seqintegration(sx)
seqintegration(sx, with.missing=TRUE)
seqintegration(sx, state="B")
seqintegration(sx, state="B", pow=1.5)

TraMineR

Trajectory Miner: a Toolbox for Exploring and Rendering Sequences

v2.2-1
GPL (>= 2)
Authors
Alexis Gabadinho [aut, cph], Matthias Studer [aut, cph] (<https://orcid.org/0000-0002-6269-1412>), Nicolas M"{u}ller [aut], Reto B"{u}rgin [aut], Pierre-Alexandre Fonta [aut], Gilbert Ritschard [aut, cre, cph] (<https://orcid.org/0000-0001-7776-0903>)
Initial release
2020-10-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.