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
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 ...
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
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? ...
Amina Gaye's user avatar
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. ...
JC_'s user avatar
  • 55
-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 ...
JC_'s user avatar
  • 55
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 ...
emanuela.struffolino's user avatar
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 ...
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
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), ...
Maël's user avatar
  • 50.9k
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
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 ...
Metro's user avatar
  • 13
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 ...
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,289
1 vote
1 answer
117 views

seqMD: size of substitution cost matrix

I'm conducting a multichannel sequence analysis with 3 channels, for which I have defined three separate substitution cost matrices as the basis for Optimal Matching. I get the following error message,...
gerek's user avatar
  • 11
2 votes
3 answers
246 views

Traminer R for sequence analysis: how to account for state order besides spell lenght?

I'm doing sequence analysis with Traminer on R and I would like to take into account only the order of different spells over time. For instance, I would like that the sequence A-B-A would be ...
ggg's user avatar
  • 83
1 vote
1 answer
58 views

Extracting a portion of the generated Representative Sequences

So, I have a set of 893 sequences of varying lengths with max sequence length = 152. There are 10 unique states across all of them. These sequences are split into two groups: Promoted and Not Promoted....
Anand Vamsi's user avatar
3 votes
1 answer
94 views

Arranging Plots from TraMineR and seqHMM

I want to plot two sequence distribution plots with the TraMineR package (seqplot(type = 'd')) and below them two Hidden Markov Models which correspond to the sequence plots (those are clusters). For ...
BossVom Schloss's user avatar
1 vote
1 answer
146 views

I installed GraphViz to run the 'seqtreedisplay' function in R (TraMineR), but I keep running into error messages

I am trying to run the 'seqtreedisplay()' function using TraMineR, but I keep running into the error message below: > seqtreedisplay(wardTree, type = "d", border = NA, show.depth = TRUE) ...
chano's user avatar
  • 13
1 vote
2 answers
99 views

Is there a way for TraMineR to find the first time leaving a state for each observation?

I am analysing data on the UK labour market and have my data in wide form, with each column corresponding to a particular month, and each row corresponding to a particular individual. Is there a way ...
James's user avatar
  • 21
1 vote
1 answer
102 views

Converting from Spell Format to STS when each individual has multiple, separate spells

I am trying to convert data of this form to STS format in order to perform sequence analysis: |Person ID |Spell |Start Month |End Month |Status (Economic Activity) | | -------- |----- |------------|---...
James's user avatar
  • 21
1 vote
2 answers
102 views

How to sort a dataframe in the same order as a sorted plot with seqIplot function?

I'm using seqIplot function (TraMineR) to create a sorted sequence index plot (sortv = "from.end"). How can I get the dataframe sorted in the same order ? Thank you !
alice's user avatar
  • 11
1 vote
1 answer
105 views

R TraMinerR - why is seqformat throwing error?

I'm very new to TraMineR, but am trying to examine sequences of modes that patients used for clinical visits over time. My data looks like this after setting it up to convert it to from SPELL to STS ...
kchaubc's user avatar
  • 13
2 votes
1 answer
301 views

How to prevent TraMineR state distribution plot (seqdplot) from removing missing states

I am analysing some sequence data and wish to be able to see missing states within all of my sequence plots. However, I have noticed that TraMineR's state distribution plot function seqdplot ...
Misc584's user avatar
  • 357
2 votes
1 answer
80 views

Complete subsequence in Traminer

Subsequences functions give interesting results with the seqefsub function. I work on sequences composed of geographical locations. Is there a way to know whether the subsequence listed is a complete ...
F. Lyon 's user avatar
1 vote
2 answers
344 views

Sequence analysis and descriptive statistics of clusters in R

I am currently doing a sequence analysis, using the TraMineR package in R. However, i am having trouble finding out how to extract descriptive statistics for each cluster i get. Using the mvad dataset ...
Maria's user avatar
  • 11
1 vote
1 answer
89 views

seqformat creates sequences with NA values in R

I'm using seqformat in R to analyze the sequence of events. I have this data, for example, for practice where I have a huge dataset, but I'm using it to understand the function format:      ...
Reta's user avatar
  • 373
1 vote
1 answer
100 views

Understanding the output of seqefsub

I have a dataset where I have three columns containing the site name, the event and the time. An example of it is shown below: ABC123 Event A 25-07-21 00:01 ABC123 Event B 25-...
Syed Zarar's user avatar
4 votes
1 answer
242 views

Optimal number of clusters TramineR

My problem may seem trivial to most of you. I'm working on hierarchical clustering using warde method with my data and would I like to identify the optimal number of clusters. This is the plot that ...
Rstudent's user avatar
  • 885

15 30 50 per page
1
2 3 4 5
8