<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Dear Hadrien,<br>
<br>
You can select rows of sequence object using subscripts. The
following example first creates a sequence object for the whole mvad
data set and then creates separate sequence objects for males and
females using the "male" variable in the mvad data frame.<br>
<br>
<tt>library(TraMineR)<br>
data(mvad)<br>
mvad.seq <- seqdef(mvad, 17:86)<br>
<br>
mvad.male.seq <- mvad.seq[mvad$male=="yes",]<br>
summary(mvad.male.seq)<br>
<br>
mvad.female.seq <- mvad.seq[mvad$male=="no",]<br>
summary(mvad.female.seq)<br>
</tt>
<br>
By the way: It appears that you are not registered as a
traminer-users list member. It is much easier for us if you register
before sending questions to the mailing list. Otherwise we have to
manually accept your request.<br>
<br>
Best regards,<br>
Alexis<br>
<br>
<br>
Le 12. 01. 12 11:18, Hadrien Commenges a écrit :
<blockquote cite="mid:28a836b9-6f5f-4184-8752-d0e19b03cabc@clara"
type="cite">
<style type="text/css">p { margin: 0; }</style>
<div style="font-family: Arial,Helvetica,sans-serif; font-size:
12pt; color: rgb(0, 0, 0);">Hi,<br>
<br>
I've a sample of let's say 10.000 individuals and I want to work
on subsamples (subsample of women, of students, etc.) with
TraMineR. I'd like to know if it's possible to create a stslist
object with seqdef for the whole sample (10.000) and make my
selections on this object afterwards (in my workflow this would
be more efficient), or do I have to create subsamples before
using seqdef function ?<br>
<br>
Thanks,<br>
<br>
Hadrien<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Traminer-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Traminer-users@lists.r-forge.r-project.org">Traminer-users@lists.r-forge.r-project.org</a>
<a class="moz-txt-link-freetext" href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/traminer-users">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/traminer-users</a>
</pre>
</blockquote>
<br>
</body>
</html>