Skip to main content

Questions tagged [traminer]

The R TraMineR library is a toolbox for exploring and rendering categorical sequence data such as sequences describing family life trajectories or professional careers. This "traminer" tag is intended for questions related to the usage including data preparation and output handling of TraMineR and its companion TraMineRextras, WeightedCluster, and PST packages.

1 vote
2 answers
51 views

adjusting the legend in TramineR plots

I am new to using TramineR and I just cannot seem to figure out how to arrange the legend in any of the plot types. The legend keeps being cut off by the plots. I have tried to use the seqlegend ...
1 vote
1 answer
35 views

Setting a minimum length for subsequences?

I'm using TraMineR to analyze the transitions between states over a 30 minute trial. There are 10 states, and then missing values, for the entire 108,000 frames. When I get the subsequences, it ...
1 vote
2 answers
95 views

TraMineR - Seqiplot include more x axis labels and rotation

I would be very grateful for advice. I would would like to include all x-axis labels on ticks, reduce the font size so that they don't overlap and rotate them. In this example, there are 23 tick marks ...
0 votes
0 answers
38 views

Increasing limit of unique sequences for distance matrix

I tried creating a dissimilarity matrix for a large data set and received an error stating that the number of unique sequences exceeded the allowed maximum. Is there a way to expand this limit? ...
2 votes
1 answer
120 views

How to extract all present combination of events as dummy variables in TraMineR

Let's say I have this data. My objective is to extract combinations of sequences. I have one constraint, the time between two events may not be more than 5, lets call this maxGap. User <- c(rep(1,3)...
2 votes
1 answer
81 views

I can't work out the entropy formula for TraMineR

I used the ggseqplot() library to calculate the entropy from the TraMineR library. To familiarise myself with the formula, I tried unsuccessfully to calculate it by hand using simple example data. ...
-1 votes
1 answer
73 views

Modify the x axis labels of the library (ggseqplot)

I use the library (ggseqplot) to display a TraMineR graph in ggplot2 format. library(ggseqplot) plot <- ggseqdplot(mvad.seq) I get this figure: I would like to modify the x axis labels which is ...
1 vote
1 answer
42 views

seqgranularity in TraMineRExtras

I am using the seqgranularity command in TraMineRExtras. I read in the help documentation that I can indicate method = "mostfreq". What happens if, for example, I move from monthly to yearly ...
0 votes
1 answer
59 views

TraminR sequence plosts

I'm trying to use ggplot to create sequence plots, for the sake of keeping the same visual style within my paper using sequence analysis As I have 8 seqiplot plot I would like to make it into one ...
0 votes
1 answer
35 views

Identify the individual corresponding to a representative sequence

I tried (unsuccessfuly) to identify the individual corresponding to a representative sequence, using function seqrep() from the R package TraMineR. I read Gabadinho, A., and G. Ritschard (2013), "...
1 vote
2 answers
120 views

Convert long data.frame to sequence in TraMineR

I have a data.frame in long format, that I want to convert to a TraMineR sequence object. set.seed(1) df <- data.frame(year = rep(1990:2010, 3), id = rep(1:3, each = 21), ...
3 votes
1 answer
48 views

Regression tree size in the context of state sequence analysis using TraMineR in R

I am conducting a regression tree using state sequence analysis and I want the image output to have the dimensions of a Letter size paper (landscape). When I use the code I include the regression tree ...
1 vote
1 answer
56 views

Mapping represented sequences with representative sequences

How is it possible to find out which "represented sequence(s)" are represented by which “representative sequence(s)”? For example, in the following example, is there a way to find the ...
1 vote
1 answer
45 views

Why are the results of `turbn` and `turb2n` `NaN` in TraMineR `seqindic` function for every single sequence of the data?

I am using TraMineR package to analyze sequence data. I have a large dataset of sequences, and I am trying to calculate the normalized turbulence using the seqindic() function in TraMineR. However, ...
2 votes
1 answer
107 views

TraMineR function seqfplot() yaxis: show percentage value for each sequence

I used to use TraMineR function seqfplot() with argument yaxis = "pct", which nicely put the percentage value for each sequence on the y-axis. Somewhere along the way some update of the ...

15 30 50 per page
1
2 3 4 5
15