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 is an R-package for mining, describing and visualizing sequences of states or events, and more generally discrete sequential data. Its primary aim is the analysis of biographical longitudinal data in the social sciences, such as data describing careers or family trajectories. Most of its features also apply to non-temporal data such as text or DNA sequences. The package includes:

  • Handling of longitudinal data and conversion between various sequence formats
  • Plotting sequences (density plot, frequency plot, index plot etc.)
  • Individual longitudinal characteristics of sequences (length, time in each state, longitudinal entropy, turbulence, complexity etc.)
  • Sequence transversal characteristics by age point (transversal state distribution, transversal entropy, modal state)
  • Other aggregated characteristics (transition rates, average duration in each state, sequence frequency)
  • Dissimilarities between pairs of sequences (optimal matching, longest common subsequence, Hamming, Dynamic Hamming, Multichannel etc.)
  • Centro-type and heterogeneity measure of a set of sequences
  • Discovering and plotting representative sequences
  • ANOVA-like analysis of sequences and tree structured ANOVA from dissimilarities
  • Extracting frequent event subsequences
  • Identifying most discriminating event subsequences
  • Association rules between subsequences

Resources:

218 questions
3
votes
1 answer

Saving sequence tree from GraphViz

I'm new to TraMineR and sequence analysis in general. I am working on a project related to retention and recruitment of educational leaders and finding TraMineR to be very useful. This may be a simple thing (and somewhat unimportant), but I cannot…
3
votes
1 answer

Speeding up identification of subsequences

I am using a dataset which has hundreds of events in each sequence. I am trying to identify subsequences and sequential association rules using TraMineR. For example, here is code that I would write: # Frequent subsequences: fsubseq <-…
histelheim
  • 4,938
  • 6
  • 33
  • 63
3
votes
1 answer

Searching for most common substrings into subsequences

I'm trying to search sequences to find the most common substrings (I.E. subsequences where all events are adjacent). The user guide says the following about their subsequence searching tools: "The idea of subsequence is an extension of the notion of…
3
votes
1 answer

TraMineR Using Weights

I am still new to TraMineR; therefore, my problem might be very simple for most of you. I am working on some sequence plots with my data and would like to see the results with the survey weights and nominal weights. I am able to import data into R…
3
votes
1 answer

How to add second y axis to seqfplot with sequence frequency?

I'm working with TraMineR to do a sequence analysis of educational data. I can get R to produce a plot of the 10 most frequent sequences in the data using code similar to the following: library(TraMineR) ##Loading the data data(actcal) ##Creating…
3
votes
1 answer

From monthly to yearly data in TraMineR

I am using TraMineR for a while now and I have a question regarding changing the time granularity of my sequences. At the moment I have my sequences aligned on months, but for several reasons I would like to change this to years. I would like to use…
3
votes
1 answer

Strange number of subsequences?

I have a sequence object created like this: subsequences <- function(data){ slmax <- max(data$time) sequences.seqe <- seqecreate(data) sequences.sts <- seqformat(data, from="SPELL", to="DSS", begin="time", end="end", id="id", status="event",…
histelheim
  • 4,938
  • 6
  • 33
  • 63
3
votes
1 answer

Formatting timestamps to avoid R/TraMineR crash?

I have a sequence dataset where the timestamp is in seconds since the epoch: id event time end 1 723 opened 1356963741 1356963741 2 722 opened 1356931342 1356931342 3 721 referenced 1356988206 1356988206 4 721…
histelheim
  • 4,938
  • 6
  • 33
  • 63
3
votes
1 answer

Loading data from TXT file and conversion to TSE format in TraMineR

I have data in a notepad text file. Please help me to convert the TXT file into TSE format. Text Data in notepad: date, time, user, process, activity 2013-06-25, 10:34:21.4375, uni15, 1, Index 2013-06-25, 10:35:13.0156, uni15, 1,…
user770853
  • 43
  • 2
3
votes
1 answer

Imputing new axis tick labels using seqrplot command

I'm using the R packages TraMineR to compute and analyze state sequences. I'm trying to plot with seqrplot command and to change the x axis tick labels. The code would be, for example: library("TraMineR") data("mvad") mvad.alphab <-…
3
votes
1 answer

Parallel coordinate plot (seqpcplot) using TraMineR: How are event sequences without any transition represented?

I'm using the R packages TraMineR to compute and analyze the event state sequences. My alphabet consists of 7 states: however, some individuals do not experience any transition along the 84 months considered, staying always in the same state. The…
3
votes
1 answer

How to use discrepancy analysis with TraMineR and aggregated sequence data?

As I have a big dataset and only limited computational ressources, I want to make use of aggregated sequence objects for a discrepancy analysis using the R packages TraMineR and WeightedCluster. But I struggle to find the right syntax for doing so. …
3
votes
1 answer

Error messages with Traminer seqtree and seqtreedisplay

I am using newly updated R and Traminer on a Mac to analyze sequence data and am having trouble getting seqtree and seqtreedisplay to run regression trees. Using the biofam data that comes with TraMineR, R gives three error messages with simple…
user13744
  • 53
  • 2
3
votes
2 answers

TraMineR: extract events between equal states from SPELL-based sequence data

Context This question concerns sequence analysis using TraMineR package. The package offers automatic transformation of temporal sequences (statuses in time) to event sequences (changes between statuses in time). One of the recurrent issues in my…
Maxim.K
  • 4,120
  • 1
  • 26
  • 43
3
votes
1 answer

Using mapply to create sequence objects in R/TraMineR?

I am running the code below to generate a list of TraMineR sequence objects. The dataset can be found [here][1]. library(TraMineR) sequences <- read.csv(file = "event-stream-20-l-m.csv", header = TRUE, nrows=10) repo_names = colnames(sequences) #…
histelheim
  • 4,938
  • 6
  • 33
  • 63
1 2
3
14 15