From luysgarcia at gmail.com Sat Aug 5 21:21:40 2017 From: luysgarcia at gmail.com (=?UTF-8?Q?Luis_Fernando_Garc=C3=ADa?=) Date: Sat, 5 Aug 2017 16:21:40 -0300 Subject: [Traminer-users] Count instead of frequency matrix Message-ID: 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: From Gilbert.Ritschard at unige.ch Mon Aug 7 14:03:57 2017 From: Gilbert.Ritschard at unige.ch (Gilbert Ritschard) Date: Mon, 7 Aug 2017 12:03:57 +0000 Subject: [Traminer-users] Count instead of frequency matrix In-Reply-To: References: Message-ID: 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: From luysgarcia at gmail.com Mon Aug 7 22:41:19 2017 From: luysgarcia at gmail.com (=?UTF-8?Q?Luis_Fernando_Garc=C3=ADa?=) Date: Mon, 7 Aug 2017 17:41:19 -0300 Subject: [Traminer-users] Count instead of frequency matrix In-Reply-To: References: Message-ID: Thanks Alexis, I downloaded the 2.1-7 version, but still gives me an error, is there any specific file to download? This is the error :Error in seqtrate(i1, count = TRUE) : unused argument (count = TRUE) Best 2017-08-07 9:03 GMT-03:00 Gilbert Ritschard : > 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) > > _______________________________________________ > 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: From luysgarcia at gmail.com Mon Aug 7 22:41:49 2017 From: luysgarcia at gmail.com (=?UTF-8?Q?Luis_Fernando_Garc=C3=ADa?=) Date: Mon, 7 Aug 2017 17:41:49 -0300 Subject: [Traminer-users] Count instead of frequency matrix In-Reply-To: References: Message-ID: My bad I meant Gilbert :) 2017-08-07 17:41 GMT-03:00 Luis Fernando Garc?a : > Thanks Alexis, > > I downloaded the 2.1-7 version, but still gives me an error, is there > any specific file to download? > > This is the error :Error in seqtrate(i1, count = TRUE) : unused argument > (count = TRUE) > > Best > > 2017-08-07 9:03 GMT-03:00 Gilbert Ritschard : > >> 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) >> >> _______________________________________________ >> 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: From Gilbert.Ritschard at unige.ch Tue Aug 8 09:19:43 2017 From: Gilbert.Ritschard at unige.ch (Gilbert Ritschard) Date: Tue, 8 Aug 2017 07:19:43 +0000 Subject: [Traminer-users] Count instead of frequency matrix In-Reply-To: References: Message-ID: <4e56a0b3a43c4722b40048703c44eff0@unige.ch> Hi Luis, There seems to be a problem with R-Forge that still distributes the build of July 25 despite it displays the last build is dated August 6. We may have to wait for a few days. If you cannot wait, please contact me personally (out from this list). 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: lundi 7 ao?t 2017 22:42 To: Users questions Subject: Re: [Traminer-users] Count instead of frequency matrix My bad I meant Gilbert :) 2017-08-07 17:41 GMT-03:00 Luis Fernando Garc?a >: Thanks Alexis, I downloaded the 2.1-7 version, but still gives me an error, is there any specific file to download? This is the error :Error in seqtrate(i1, count = TRUE) : unused argument (count = TRUE) Best 2017-08-07 9:03 GMT-03:00 Gilbert Ritschard >: 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) _______________________________________________ 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: