Tell me more ×
Cross Validated is a question and answer site for statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.

I have data on patients attendance of a series of sessions of counseling. At each session, a patient could be A, S or D. Each patient has data for 12 sessions, and there are ~100 patients.

I am interested in how the variables are 'autocorrelate'. I could just make 3x3 tables of (e.g.) time 1 vs. time 2, time 1 vs. 3, time 2 vs. 3, etc. but I am curious if there is something more sophisticated.

Googling this revealed some measures for spatial autocorrelation, e.g join-counts, but nothng specifically for temporal autocorrelation. I could also try to adapt the join counts to temporal data, but, again, am curious if someone has done this already.

I have access to R and SAS packages

share|improve this question
3  
See markov-chain questions/answers on this site. – Andy W Apr 18 '12 at 22:45
Thanks @AndyW , I hadn't thought of that, but it's clearly a good idea. – Peter Flom Apr 18 '12 at 22:52
1  
I'm sure glad you didn't state that the patients could be S, A or D. – cardinal Apr 19 '12 at 2:02

1 Answer

up vote 2 down vote accepted

One other thing to consider, besides markov-chain is sequence analysis / mining. There are several really good packages in R:

TraMineR which has the following very good docs:

There is also that package arulesSequence.

share|improve this answer
Thanks! I will look into those, too – Peter Flom Apr 19 '12 at 10:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.