Computes auto-associations of order k = 1 to order, between current states and states lagged by k positions.
order
seqauto(seqdata, order = 1, measure = "cv")
A state sequence object or a data frame with sequential data in STS format.
Maximum wanted order of auto-association.
Character string. Currently only "cv" (Cramer's v) is accepted.
"cv"
A matrix with order rows and two columns: the auto-association and its p-value.
Function in development, not fully checked.
The function puts the data in "SRS" form by means of the seqformat function.
"SRS"
seqformat
# NOT RUN { data(biofam) biofam.seq <- seqdef(biofam[1:100,10:25]) aa <- seqauto(biofam.seq, order=5) aa # }
Run the code above in your browser using DataLab