r - seqedplot using TraMineR: how to plot selected hazard curve in one single graph? -


I am using TraMineRextras and especially interested in the seqedplot function.

Here's an example:

  Data (Actakel.Tc) actacl.tse & lt; - actcal.tse [1: 500,] Isaac & lt; - Unique (Acticle Tte $ ID) NSEX and LT; - Length (ISEC) data (Actual) Actual & LT; - Actakel [Ravels (Actual)% in% ICQ, Actkel. SECE & lt; - Sequet (Actual. Seqe) & lt; - rep (12, nseq)   

Instead of plotting all curves by:

  seqedplot (actcal.seqe, type = "hazard", Ignore = 6, Group = Ectical $ Sex, LW = 3)   

I use the selected curves according to the variable gender and ignore / Code> Options:

  seqedplot (actcal.seqe, type = "existence", group = actual $ sex, LWD = 3, unblock = c ("NoActivity", "I'm a man Instead of men and women in the same graph How can I make a shell? "  

From two different graphs?

Thank you in advance

In order to bind a gender in a way, the event type may be:

  actcal.tse $ event <- sprintf ("% S-% s", actcal.tse $ event, Active $ sex [match (actcal.tse $ id, rownames (actual))]   

Because split into an article If there does not seem to be an option to use the groups parameter, then try some attempts with these lines. Switch to, and completely abandoned the group option

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -