[Traminer-users] Traminer-users Digest, Vol 37, Issue 3

Jeremy Reynolds jeremyr at uga.edu
Fri Jan 17 18:01:21 CET 2014


Hi Gilbert,

Thank you for your response.  After more experimenting, I have found that
(as suspected) the error must be on my side.  I am not sure exactly what I
did wrong.  I think my mistake was either a sloppy use of the aggregation
feature in the weighted cluster package or an inappropriate use of the
subset() function when I created the separate data set.  In any case, I now
get sequence index and distribution plots that look the same whether I use
the group option or make the plots separately after sub-setting the data.

Jeremy


On Thu, Jan 16, 2014 at 6:00 AM,
traminer-users-request at lists.r-forge.r-project.org <
traminer-users-request at lists.r-forge.r-project.org> wrote:

> Send Traminer-users mailing list submissions to
>         traminer-users at lists.r-forge.r-project.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/traminer-users
>
> or, via email, send a message with subject or body 'help' to
>         traminer-users-request at lists.r-forge.r-project.org
>
> You can reach the person managing the list at
>         traminer-users-owner at lists.r-forge.r-project.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Traminer-users digest..."
>
>
> Today's Topics:
>
>    1. Re: plots with group option vs separate plots (Gilbert Ritschard)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 15 Jan 2014 15:35:34 +0000
> From: Gilbert Ritschard <Gilbert.Ritschard at unige.ch>
> To: Users questions <traminer-users at lists.r-forge.r-project.org>
> Subject: Re: [Traminer-users] plots with group option vs separate
>         plots
> Message-ID:
>         <66ABD43696E3DB4687E0BB396A76E5F149F8AA at golf.isis.unige.ch>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi Jeremy,
>
> Thank you for your question. Could you provide a reproducible working
> example? Indeed you are right, you should get the same plot in both cases.
> You do not provide enough information, however, to allow identifying the
> source of the problem.
>
> Your question certainly is of interest for many TraMineR users and future
> users.  I would therefore suggest you post your question on StackOverflow
> (see http://mephisto.unige.ch/traminer/contrib.shtml) using the
> "traminer" tag which is searchable, unlike this r-forge list.
>
> Best.
> Gilbert
>
>
>
> From: traminer-users-bounces at lists.r-forge.r-project.org [mailto:
> traminer-users-bounces at lists.r-forge.r-project.org] On Behalf Of Jeremy
> Reynolds
> Sent: Monday, January 13, 2014 22:09
> To: traminer-users at lists.r-forge.r-project.org
> Subject: [Traminer-users] plots with group option vs separate plots
>
> Hello,
> 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.
> 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:
>
> seqdplot(seq.hc, group = pam5vs$clustering$cluster4, border = NA,
> title="pam5vs")
> 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.
> Thanks,
>
> Jeremy
>
> cluster4 <- subset(bhps, pam5vs$clustering$cluster4==(6875))
> seq.cluster4 <- seqdef(cluster4 [4:21], labels = c("M", "S", "F", "O", "U"
> ))
> seqdplot(seq.cluster4, border = NA, title="pam5vs cluster 6875")
>
> --
> ********************
> Dr. Jeremy Reynolds
> Associate Professor
> Undergraduate Coordinator
> Department of Sociology
> 116 Baldwin Hall
> University of Georgia
> Athens, GA 30602-1611
> Phone: (706) 583-8072
> Web: http://uga.edu/soc/people/faculty/reynolds_jeremy.php
> Fax: (706) 542-4320
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.r-forge.r-project.org/pipermail/traminer-users/attachments/20140115/aacf6cad/attachment-0001.html
> >
>
> ------------------------------
>
> _______________________________________________
> Traminer-users mailing list
> Traminer-users at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/traminer-users
>
> End of Traminer-users Digest, Vol 37, Issue 3
> *********************************************
>



-- 
********************
Dr. Jeremy Reynolds
Associate Professor
Undergraduate Coordinator
Department of Sociology
116 Baldwin Hall
University of Georgia
Athens, GA 30602-1611
Phone: (706) 583-8072
Web: http://uga.edu/soc/people/faculty/reynolds_jeremy.php
Fax: (706) 542-4320
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/traminer-users/attachments/20140117/7838cb21/attachment.html>


More information about the Traminer-users mailing list