seqauto: Auto-association between states

Description Usage Arguments Details Value Warning Author(s) See Also Examples

View source: R/seqauto.R

Description

Computes auto-associations of order k = 1 to order, between current states and states lagged by k positions.

Usage

1
seqauto(seqdata, order = 1, measure = "cv")

Arguments

seqdata

A state sequence object or a data frame with sequential data in STS format.

order

Maximum wanted order of auto-association.

measure

Character string. Currently only "cv" (Cramer's v) is accepted.

Details

The function puts the data in "SRS" form by means of the seqformat function.

Value

A matrix with order rows and two columns: the auto-association and its p-value.

Warning

Function in development, not fully checked.

Author(s)

Gilbert Ritschard

See Also

seqformat

Examples

1
2
3
4
5
data(biofam)

biofam.seq <- seqdef(biofam[1:100,10:25])
aa <- seqauto(biofam.seq, order=5)
aa

TraMineRextras documentation built on Aug. 31, 2017, 3 p.m.