<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<link href="chrome://translator/skin/floatingPanel.css"
type="text/css" rel="stylesheet">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dear Daïga,<br>
<br>
Here are some answers to your questions.<br>
<br>
1) The function "interaction" from the "base" library can be used to
create a new variable. For instance, to create a new variable called
"state1", you may use the following code: <br>
<br>
mydata$state1 <- interaction(mydata$A1, mydata$B1, mydata$C1,
mydata$D1, mydata$E1)<br>
<br>
Doing it for each of the five time t, you can get your sequence
data. For more information on the "interaction" function, you may
run: <br>
<br>
help(interaction)<br>
<br>
2) sampling weights can be used with the weights argument of the
seqdef function (see help(seqdef)). By default, weights will be used
in all subsequent call to the different seq type functions. More
information on this are given in the reference below (see section 4)<br>
<br>
Gabadinho, A., Ritschard, G., Müller, N.S. & Studer, M. (2011),
Analyzing and visualizing state sequences in R with TraMineR,
Journal of Statistical Software. Vol. 40(4), pp. 1-37. <br>
<br>
Hope this helps<br>
<br>
Matthias Studer<br>
<br>
<br>
Le 09.02.2012 09:40, Kamerade Daiga a écrit :
<blockquote
cite="mid:F2BFFA6D788F614EB706CA6B490A6F23010518@UOS-P-EXCH-01.isdads.salford.ac.uk"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
<div style="direction: ltr;font-family: Tahoma;color:
#000000;font-size: 10pt;">Dear All,<br>
<br>
firstly, hello to everyone- I am new to this list lured here by
analytical opportunities offered by TraMineR which are
excellently presented in the User Guide! I am using TraMineR to
analyse membership histories in voluntary sector organisations.<br>
<br>
Two questions:<br>
<br>
1) Could anyone, please, help me to figure out how can I create
multi-character state sequence objects. Currently I have five
variables A, B, C,D,E measured five times, each having two
levels: yes (1) &no (0), so the data frame contains 25
colums with states: A1,B1, C1, D1, E1, A2, B2, C2, D2, E2,
A3....etc E5. I want to create sequences where each state is
represented by all five variables at time point t., e.g.
something like this: 01111-10000-11111, i.e at time t this
persona was not in A but was in BCDE; at time t+1 he was in A
but not in other etc. <br>
2) how can sampling weights be incorporated into different seq
type functions?<br>
<br>
thank you very much in advance!<br>
<br>
best wishes<br>
Daiga<br>
<br>
<br>
<br>
<div><br>
<div style="font-family: Tahoma; font-size: 13px;">
<div style="font-family: Tahoma; font-size: 13px;"><font
size="2">_____________________________________________________________________<br>
<font color="#ff0000"><strong>Daiga Kamerade, Ph.D.
(Cantab), PGCE HEPR, FHEA</strong></font><br>
Lecturer in Organisational Behaviour and HRM, Salford
Business School<br>
VC Early Career Research Scholar<br>
Room 327, Maxwell Building, University of Salford,
Salford, Manchester, M5 4WT, UK
<br>
Tel. + 44 (0)161 295 5318<br>
Research
profile:<a class="moz-txt-link-freetext" href="http://www.seek.salford.ac.uk/profiles/DAIGA%20KAMERADE.jsp">http://www.seek.salford.ac.uk/profiles/DAIGA%20KAMERADE.jsp</a></font></div>
<div style="font-family: Tahoma; font-size: 13px;"> </div>
<div style="font-family: Tahoma; font-size: 13px;"><br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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>
<div style="bottom: auto; left: 76px; right: auto; top: 199px;
display: none;" class="translator-theme-default"
id="translator-floating-panel">
<div title="Cliquer pour traduire"
id="translator-floating-panel-button"></div>
</div>
</body>
</html>