Date: 2011-05-04 10:09 Sender: Matthias StuderDear Pierre,
Many thanks for your bug report and for the example dataset that allowed me to quickly find the reported bugs. As you say, your bug report relates to different issues.
Actually, event sequences object may not be saved. Internally, event sequences objects are handled as a C structure and R provides no interface to save custom C structure. I think that workaround would be possible but may require more computation at each step. Anyway, it should be possible to provide an error message instead of segfault.
Regarding the second issue, the bug is located in the as.character function of the sequence object and is due to the fact that each of your sequences contains a lot of events. This is now fixed in the development version (see "R Packages" above and/or our main website for instructions on how to install).
Regarding the fact that seqefsub seems to block indefinitely, this is due to the number of events in each of your event sequences (around 200). The number of possible subsequences explodes with the length of each sequence. By default seqefsub try to find all possible subsequences, which, in your case, is impossible (too many possibilities). One workaround is to constrain the search of subsequences using "seqeconstraint" and/or using the maxK argument of seqefsub. maxK allow to specify the maximum number of events allowed in a subsequence, which reduces considerably to number of subsequence to search for. You may try to run seqefsub with a maxK of 4 (maybe 5 but not much higher).
Thanks again.
Best regards,
Matthias |