Sequential Analysis In R

19 May 2019

LagSequential is an R package for analysing lag-sequential categorical data. Information about the package can be found in the package documentation. LagSequential is available through the CRAN and can be installed by running the code below.


I worked with Brian O’Connor to write this package based on his programs for conducting the same analyses in SPSS, SAS, and Fortran 77, which are available at his website.

For more information about sequential analysis, see the package documentation or any of the references below.


O’Connor, B. P. (1999). Simple and flexible SAS and SPSS programs for analyzing lag-sequential categorical data. Behavior Research Methods, Instrumentation, and Computers, 31, 718–726.

Wampold, B. E. (1989). Kappa as a measure of pattern in sequential data. Quality and Quantity, 23, 171–187.

Wampold, B. E. (1984). Tests of dominance in sequential categorical data. Psychological Bulletin, 96, 424.

Wampold, B. E., & Kim, K. (1989). Sequential analysis applied to counseling process and outcome: A case study revisited. Journal of Counseling Psychology, 36, 357.

Wampold, B. E., & Margolin, G. (1989). Nonparametric strategies to test the independence of behavioral states in sequential data. Psychological Bulletin, 92, 755.