I am using TraMineR for a while now and I have a question regarding changing the time granularity of my sequences. At the moment I have my sequences aligned on months, but for several reasons I would like to change this to years. I would like to use the longest spell in each year as the state for that particular year. In other words, if somebody was cohabiting for 4 months and then got married and stayed married for the other 8 months in the year 2000, I would like to code that person as being married in 2000. I was wondering if there is an easy way to do this with TraMineR.
Thanks in advance,
Tom