<div dir="ltr"><div><div>Hello,<br><br></div>I have been making sequence plots, and I seem to be getting very different results when I use the "group" option of the seqdplot or seqIplot command than when I draw separate plots for each subgroup.  <br>
<br></div>After creating a sequence object and performing optimal matching using PAM, I have chosen a 4 cluster solution.  I then create a single plot that shows the distribution across states in each of the 4 clusters like this:<br>
<div><br>seqdplot(seq.hc, group = pam5vs$clustering$cluster4, border = NA, title="pam5vs")<br><br></div><div>If I subset the data and make a separate plot for one of the 4 clusters as in the code below, the N matches the results above (the total N and the N across the states), but I get a very different impression of how the cases are distributed across the states in the two graphs.  Am I doing something wrong?  I would be happy to provide more detail if needed.<br>
<br></div><div>Thanks,<br><br>Jeremy<br></div><div><br>cluster4 <- subset(bhps, pam5vs$clustering$cluster4==(6875))<br>seq.cluster4 <- seqdef(cluster4 [4:21], labels = c("M", "S", "F", "O", "U" ))<br clear="all">
</div><div><div><div>seqdplot(seq.cluster4, border = NA, title="pam5vs cluster 6875")<br><br>-- <br><div dir="ltr">********************<br>Dr. Jeremy Reynolds<br>Associate Professor<br>Undergraduate Coordinator<br>
Department of Sociology<br>116 Baldwin Hall<br>University of Georgia<br>Athens, GA 30602-1611<br>Phone: (706) 583-8072<br>Web: <a href="http://uga.edu/soc/people/faculty/reynolds_jeremy.php" target="_blank">http://uga.edu/soc/people/faculty/reynolds_jeremy.php</a><br>
Fax: (706) 542-4320</div>
</div></div></div></div>