[Traminer-users] Count instead of frequency matrix

Gilbert Ritschard Gilbert.Ritschard at unige.ch
Mon Aug 7 14:03:57 CEST 2017


Dear Luis,

We have added an argument ‘count’ to the seqtrate function. Setting count = TRUE, you get the counts of the transitions instead of the transition probabilities. For example, you get the counts in your case with

seqtrate(i1, count=TRUE)

This new version of seqtrate is available with the latest development version (build 2018.08.06) available on R-Forge
https://r-forge.r-project.org/R/?group_id=743
and will be made available on the CRAN within the next weeks.

All the best.
Gilbert


From: traminer-users-bounces at lists.r-forge.r-project.org [mailto:traminer-users-bounces at lists.r-forge.r-project.org] On Behalf Of Luis Fernando García
Sent: samedi 5 août 2017 21:22
To: traminer-users at lists.r-forge.r-project.org
Subject: [Traminer-users] Count instead of frequency matrix

Dear TramineR users,

I am new at the list and currently I am trying to obtain a count matrix from several observations.

I could do it for a frequency matrix using the seqtrate function. I wanted to know if there exists a similar command which makes the same but computes a count matrix instead.

Finally I wanted to know if the package counts with some function to compare two transitions matrices by using a Chi-square test.

Thanks!

The code goes below!

################################################################

library(TraMineR)
z14=c("o-p-m-q-a-q-c-z-a-z-m-z-c-z-e-q-c-z-x")
z349=c("o-m-a-c-m-z-m-z-a-c-e-q-c-z-x")
z5=c("a-o-p-m-a-q-e-q-a-q-a-z-o-p-m-a-e-a-q-e-q-c-a-c-a-c-o-a-p-m-a-e-q-c-z-x")
z12=c("o-p-m-a-e-q-c-a-c-a-q-a-q-e-c-x")
z17=c("o-c-m-o-m-a-q-e-a-m-z-x")
z19=c("o-m-a-q-o-m-q-c-m-z-m-a-q-o-q-a-q-o-a-m-z-a-q-c-z-x")
z1=c("p-m-a-o-m-z-e-q-o-p-m-z-p-q-e-z-m-z-x")
z10=c("o-p-m-z-a-q-c-x")
z2=c("o-z-o-m-o-m-a-c-p-a-e-q-a-z-x")
z5=c("o-m-o-m-a-e-q-c-z-m-z-o-z-o-m-a-q-c-o-z-o-a-o-p-m-a-q-c-q-c-z-x")
z6=c("p-m-a-q-e-q-a-o-p-m-a-q-c-z-m-z-m-z-e-q-c-z-m-z-x")
z8=c("o-m-a-q-c-z-x")
z9=c("c-p-m-a-e-a-c-a-q-p-m-a-z-a-q-e-q-e-q-e-o-m-z-m-z-m-x")
i1    <- seqdef(c(z14,z349,z5,z12,z17,z19,z1,z10,z2,z5,z6,z8,z9))
seqtrate(i1)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/traminer-users/attachments/20170807/b34538fc/attachment.html>


More information about the Traminer-users mailing list