<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Lucida Console";
panose-1:2 11 6 9 4 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.gcwxi2kcpkb
{mso-style-name:gcwxi2kcpkb;}
span.gcwxi2kcpjb
{mso-style-name:gcwxi2kcpjb;}
span.gcwxi2kcdkb
{mso-style-name:gcwxi2kcdkb;}
span.EmailStyle24
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle25
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Thank you Gilbert. I will give that a try.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Jeremty<o:p></o:p></span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span style="color:#1F497D"><o:p> </o:p></span></a></p>
<span style="mso-bookmark:_MailEndCompose"></span>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> traminer-users-bounces@lists.r-forge.r-project.org [mailto:traminer-users-bounces@lists.r-forge.r-project.org]
<b>On Behalf Of </b>Gilbert Ritschard<br>
<b>Sent:</b> Monday, June 12, 2017 2:44 AM<br>
<b>To:</b> Users questions <traminer-users@lists.r-forge.r-project.org><br>
<b>Subject:</b> Re: [Traminer-users] subsetting a sequence object<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="FR-CH" style="color:#1F497D">Hi Jeremy,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-CH" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Seems that you try to group according to a variable with a single value (“2611”). Did you try to drop the group argument from you seqIplot command?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Best.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">gilbert<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> <a href="mailto:traminer-users-bounces@lists.r-forge.r-project.org">
traminer-users-bounces@lists.r-forge.r-project.org</a> [<a href="mailto:traminer-users-bounces@lists.r-forge.r-project.org">mailto:traminer-users-bounces@lists.r-forge.r-project.org</a>]
<b>On Behalf Of </b>Reynolds, Jeremy E<br>
<b>Sent:</b> dimanche 28 mai 2017 18:25<br>
<b>To:</b> Users questions <<a href="mailto:traminer-users@lists.r-forge.r-project.org">traminer-users@lists.r-forge.r-project.org</a>><br>
<b>Subject:</b> [Traminer-users] subsetting a sequence object<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><span lang="FR-CH"><o:p> </o:p></span></p>
<p class="MsoNormal">Dear Traminer Users,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am trying to create a sequence index plot for a subset of the cases in a sequence object. I followed the example at the link below, but I get an error message about missing values. I can try to make an example with the mvad data if
needed, but I am hoping the output below might be enough for someone to give me a tip.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Jeremy<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><a href="https://stackoverflow.com/questions/13922750/how-to-create-sequence-index-plots-of-a-subset-of-groups-in-a-sequence-object">https://stackoverflow.com/questions/13922750/how-to-create-sequence-index-plots-of-a-subset-of-groups-in-a-sequence-object</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="line-height:11.25pt;background:white;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Lucida Console";color:blue">txt> subset <- bhps.m$lcs6c_m %in% c("2611")<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.25pt;background:white;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Lucida Console";color:blue">txt> table(subset)<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.25pt;background:white;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Lucida Console";color:black">subset<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.25pt;background:white;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Lucida Console";color:black">FALSE TRUE
<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.25pt;background:white;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Lucida Console";color:black">61031 23119<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.25pt;background:white;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Lucida Console";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.25pt;background:white;word-break:break-all">
<span class="gcwxi2kcpkb"><span style="font-family:"Lucida Console";color:blue">txt></span></span><span style="font-size:10.0pt;font-family:"Lucida Console";color:black">library(summarytools)<o:p></o:p></span></p>
<pre style="line-height:11.25pt;background:white;word-break:break-all"><span class="gcwxi2kcpkb"><span style="font-family:"Lucida Console";color:blue">txt> </span></span><span class="gcwxi2kcpjb"><span style="font-family:"Lucida Console";color:blue">freq(men.match$lcs6c_m)</span></span><span class="gcwxi2kcpjb"><span lang="FR-CH" style="color:blue"><o:p></o:p></span></span></pre>
<pre style="line-height:11.25pt;background:white;word-break:break-all"><span style="color:black"><o:p> </o:p></span></pre>
<pre style="line-height:11.25pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black">Frequencies<o:p></o:p></span></pre>
<pre style="line-height:11.25pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black"><o:p> </o:p></span></pre>
<pre style="line-height:11.25pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black">Dataframe name: men.match<o:p></o:p></span></pre>
<pre style="line-height:11.25pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black"> Variable name: lcs6c_m<o:p></o:p></span></pre>
<pre style="line-height:11.25pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black"><o:p> </o:p></span></pre>
<pre style="line-height:11.25pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black"> N %Valid %Cum.Valid %Total %Cum.Total<o:p></o:p></span></pre>
<pre style="line-height:11.25pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black">----------- ----- -------- ------------ -------- ------------<o:p></o:p></span></pre>
<pre style="line-height:11.25pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black"> 1024 0 0 0 0 0<o:p></o:p></span></pre>
<pre style="line-height:11.25pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black"> 2296 0 0 0 0 0<o:p></o:p></span></pre>
<pre style="line-height:11.25pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black"> 2611 23119 100 100 100 100<o:p></o:p></span></pre>
<pre style="line-height:11.25pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black"> 2849 0 0 100 0 100<o:p></o:p></span></pre>
<pre style="line-height:11.25pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black"> 3876 0 0 100 0 100<o:p></o:p></span></pre>
<pre style="line-height:11.25pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black"> 5479 0 0 100 0 100<o:p></o:p></span></pre>
<pre style="line-height:11.25pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black"> <NA> 0 NA NA 0 100<o:p></o:p></span></pre>
<pre style="line-height:11.25pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black"> Total 23119 100 100 100 100<o:p></o:p></span></pre>
<p class="MsoNormal" style="line-height:11.25pt;background:white;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Lucida Console";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.25pt;background:white;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Lucida Console";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.25pt;background:white;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Lucida Console";color:blue">txt> seqIplot(seq.m[subset, ], group=bhps.m$lcs6c_m[subset])<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.25pt;background:white;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Lucida Console";color:#C5060B">Error in if (any(x == nr)) { : missing value where TRUE/FALSE needed</span><span style="font-size:10.0pt;font-family:"Lucida Console";color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">____________________________________<br>
Dr. Jeremy Reynolds<br>
Professor<br>
309 Stone Hall <br>
Department of Sociology<br>
700 W. State Street<br>
Purdue University <br>
West Lafayette, IN 47907 <br>
Phone: <a href="tel:%28765%29%20496-3348" target="_blank"><span style="color:blue">(765) 496-3348</span></a>
<a href="https://www.cla.purdue.edu/sociology/directory/index.aspx?p=Jeremy_Reynolds" target="_blank">
<span style="color:blue">https://www.cla.purdue.edu/sociology/directory/index.aspx?p=Jeremy_Reynolds</span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>