<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.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
span.gcwxi2kcpkb
{mso-style-name:gcwxi2kcpkb;}
span.gcwxi2kcpjb
{mso-style-name:gcwxi2kcpjb;}
span.gcwxi2kcdkb
{mso-style-name:gcwxi2kcdkb;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@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">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">https://stackoverflow.com/questions/13922750/how-to-create-sequence-index-plots-of-a-subset-of-groups-in-a-sequence-object<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)<o:p></o:p></span></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">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>
</body>
</html>