TSE_TO_STS application

I have 12 categorical sequence in TSE format. In the help page of this function tmax is specified as 12 based on the sequence data example used. How would I change this value if the maximum time length is 292 for one sequence and smaller than 292 for other sequences. Assume one of the sequence ends at time 25. using tmax=292, any state after 25 will use the same state till 292 which is wrong I believe. I would like to stop the sequence at time 25 and fill anything else on the right side with void.

1 answer

  • answered 2018-02-13 03:18 Gilbert

    TSE_to_STS is a function provided by the TraMineRextras package. It converts time stamped event sequences into state sequences. The resulting state sequences are in STS form, i.e., organized in a table with each sequence in a different row and the states in successive columns. tmaxis used to determine the number of columns of this table. Therefore, it should be fixed to the maximal state sequence length.

    To end a sequence at time 25 for example, you need to insert an end of sequence event at time 25. TSE_to_STS cannot guess when the sequence ends.