[Traminer-users] precision in seqdef
Nicolas S. Mueller
Nicolas.Muller at unige.ch
Fri Jun 24 15:23:01 CEST 2011
Dear Nathan,
You could multiply by something large, but this will surely give you
sequences too long.
What I would do is use the round() function in R to round the timestamps
to integers.
You could also keep 2 digits and multiply by 100. It depends on the
precision you need.
Please consider subscribing to the TraMineR mailing list by going to :
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/traminer-users
Best regards.
Nicolas Müller
On 06/24/2011 10:41 AM, Nathan Green wrote:
> I'm using the following SPELL format data.
> The problem is that it appears the precision of the time data is too
> high for the seqdef function
> when I round to 3 d.p. its fine.
> what would you suggest i should do in this case?
> I can premultiply by something large and then divide afterwards?
> thanks for the help.
> n
> id index from to status
> 1 1 1 24.00000 179.66694 1
> 2 1 2 179.66694 181.33361 2
> 3 1 3 181.33361 191.33361 4
> 4 1 4 191.33361 201.33361 5
> 5 2 1 24.00000 376.00667 1
> 6 2 2 376.00667 400.00667 2
> 7 2 3 400.00667 410.00667 4
> 8 2 4 410.00667 420.00667 5
> 9 3 1 24.00000 40.00667 1
> 10 3 2 40.00667 56.00667 2
> 11 3 3 56.00667 58.00667 4
> 12 3 4 58.00667 68.00667 5
>
>
> _______________________________________________
> Traminer-users mailing list
> Traminer-users at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/traminer-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/traminer-users/attachments/20110624/01b4b890/attachment.htm>
More information about the Traminer-users
mailing list