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.

traminer
1 vote
2 answers
46 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 ...
user25809482's user avatar
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 ...
Becca Trapp's user avatar
0 votes
0 answers
36 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? ...
Amina Gaye's user avatar
2 votes
1 answer
80 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. ...
JC_'s user avatar
  • 55
-1 votes
1 answer
70 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 ...
JC_'s user avatar
  • 55
1 vote
1 answer
41 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 ...
emanuela.struffolino's user avatar
1 vote
2 answers
90 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 ...
SK77's user avatar
  • 115
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 ...
Rstudent's user avatar
  • 885
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), "...
Jacques-Antoine's user avatar
1 vote
2 answers
119 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), ...
Maël's user avatar
  • 50.7k
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 ...
idborquez's user avatar
1 vote
1 answer
55 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 ...
Metro's user avatar
  • 13
2 votes
1 answer
102 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 ...
Henrik's user avatar
  • 65
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, ...
Ghazal Khalili's user avatar
1 vote
1 answer
64 views

TraMineR seqcost time.varying

How do you use the time varying substitution cost (time.varying = T) created with the seqcost function in TraMineR? It does not seem to work. library(TraMineR) data(biofam) biofam.seq <- seqdef(...
giac's user avatar
  • 4,279

15 30 50 per page
1
2 3 4 5
15