<p style="margin:0;padding:0;" align="left"><p style="margin: 0pt; padding: 0pt" align="left"> </p> Bonjour, <br /><br />   J'ai effectué une classification ascendante hiérarchique à partir de  Traminer. J'ai utilisé la fonction seqrep pour retrouver le médoid de  chaque classe. De plus, par la fonction print (medoid,...), je peux  aussi récupérer le numéro de ligne correspondant à la trajectoire  représentative. Cependant, lorsque j'utilise la fonction seqrplot qui  permet d'obtenir plusieurs séquences représentatives, je ne parviens pas  à récupérer le numéro de ligne ou tout simpement l'dentifiant auquel  elles correspondent. Auriez vous une idée là dessus?<br /><br />Cordialement<br />Sonia</p> <br /> <br /> <br /><br /><blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid #ff0000">> Message du 30/04/12 09:34<br />> De : "Gilbert Ritschard" <br />> A : "Users questions" <br />> Copie à : <br />> Objet : Re: [Traminer-users] Nominal autocorrelation<br />><br />> Hi Peter,<br />> <br />> Using the seqformat() function to transform your sequences into SRS <br />> (shifted-replicated sequence) form (see Ritschard & al., 2009), it is <br />> easy to compute some nominal auto-association of any order. Here is an <br />> example where we compute an auto-cv of order 1 (cv being Cramer's v).<br />> <br />> libarary(TraMineR)<br />> data(biofam)<br />> biofam.srs <- seqformat(biofam[,10:25], from="STS", to="SRS")<br />> nc <- ncol(biofam.srs)<br />> x1 <- table(biofam.srs[,nc],biofam.srs[,nc-1])<br />> chisq <- chisq.test(x1, correct=FALSE)$statistic<br />> names(chisq) <- ""<br />> cv1 <- sqrt(chisq/(sum(x1)*min(dim(x1)-1)))<br />> print(cv1)<br />> <br />> Reference for the SRS format:<br />> <br />> Ritschard, G., Gabadinho, A., Studer, M. & Müller, N.S. (2009), <br />> "Converting between various sequence representations", In Ras, Z. & <br />> Dardzinska, A. (eds) /Advances in Data Management/. Series: /Studies in <br />> Computational Intelligence/. Volume 223, pp. 155-175. Berlin: Springer. <br />> (preprint available on the TraMineR page)<br />> <br />> Cheer.<br />> Gilbert<br />> <br />> On 24-Apr-12 21:15, Peter Flom wrote:<br />> ><br />> > Good afternoon<br />> ><br />> > I just got TraMineR – what a great package! It’s going to save me a <br />> > lot of time and effort.<br />> ><br />> > I have a data set with a bunch of sequences of nominal states (for <br />> > now, anyway, 80 sequences, with each having one of two states, but it <br />> > may also be necessary to do this with 4 states and more sequences)<br />> ><br />> > My client wants some nominal equivalent of autocorrelation. Looking <br />> > through the documentation, the closest thing seems to be turbulence, <br />> > or perhaps inverse of turbulence, but that’s per sequence, not per <br />> > data set. Of course, I could find mean or median turbulence, or mean <br />> > or median inverted turbulence, but I wondered if there is some already <br />> > developed measure for what I want.<br />> ><br />> > Thanks in advance<br />> ><br />> > Peter<br />> ><br />> > Peter Flom<br />> ><br />> > Peter Flom Consulting<br />> ><br />> > http://www.statisticalanalysisconsulting.com/<br />> ><br />> > http://www.IAmLearningDisabled.com<br />> ><br />> ><br />> ><br />> > _______________________________________________<br />> > Traminer-users mailing list<br />> > Traminer-users@lists.r-forge.r-project.org<br />> > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/traminer-users<br />> <br />> -- <br />> Gilbert Ritschard, Department of Economics and<br />> Institute for Demographic and Life Course Studies,<br />> University of Geneva, 40, bd du Pont-d'Arve, CH-1211 Genève 4, Switzerland<br />> http://mephisto.unige.ch<br />> <br />> _______________________________________________<br />> Traminer-users mailing list<br />> Traminer-users@lists.r-forge.r-project.org<br />> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/traminer-users<br />> </blockquote>