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
26
questions
7
votes
2
answers
2k
views
Problem with big data (?) during computation of sequence distances using TraMineR
I am trying to run an optimal matching analysis using TraMineR but it seems that I am encountering an issue with the size of the dataset. I have a big dataset of European countries which contains ...
7
votes
1
answer
4k
views
Find specific patterns in sequences
I'm using R package TraMineR to make some academic research on sequence analysis.
I want to find a pattern defined as someone being in the target company, then going out, then coming back to the ...
2
votes
2
answers
1k
views
Plot Event sequences / Event Sequences Clustering
Perhaps this is a veru dull question, but I did my research on it and couldn't find an answer.
I want to plot my event sequences in the same way we plot sequences of states using seqIplot, seqfplot, ...
2
votes
1
answer
2k
views
How to configure y-axis using seqIplot in R?
I am trying to configure the y-axis of a sequence index plot using the R-package TraMineR, I figured out how to set a global limit for the y-axis which is helpful if you want compare the number of ...
3
votes
1
answer
779
views
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 ...
6
votes
1
answer
3k
views
An "asymmetric" pairwise distance matrix
Suppose there are three sequences to be compared: a, b, and c. Traditionally, the resulting 3-by-3 pairwise distance matrix is symmetric, indicating that the distance from a to b is equal to the ...
6
votes
1
answer
898
views
Creating a sequence object from SPELL data
I am trying to create a sequence object with seqdef using SPELL format. Here is an example of my data:
spell <- structure(list(ID = c(1, 3, 3, 4, 5, 5, 6, 8, 9, 10, 11, 11,
12, 13, 13, 13, 13, 14,...
5
votes
2
answers
1k
views
Multiple events in traminer
I'm trying to analyse multiple sequences with TraMineR at once. I've had a look at seqdef but I'm struggling to understand how I'd create a TraMineR dataset when I'm dealing with multiple variables. I ...
3
votes
1
answer
266
views
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 ...
3
votes
1
answer
428
views
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", ...
2
votes
1
answer
118
views
Fitting a VLMC to very long sequences
I am trying to fit a VLMC to a dataset where the longest sequence is 296 states. I do it as shown below:
# Load libraries
library(PST)
library(RCurl)
library(TraMineR)
# Load and transform data
x &...
2
votes
1
answer
422
views
Measuring reliability of tree/dendrogram (Traminer)
I did an analysis using TraMineR in order to measure the similarity among sequences of spatial use (for example Rural(R) vs Urban (U): sequence example -> RRRRRUUURRUUU)
A requirement in my analysis ...
2
votes
3
answers
1k
views
Pivoting a CSV file using R
I have a file that looks like this:
type created_at repository_name
1 IssuesEvent 2012-03-11 06:48:31 bootstrap
2 IssuesEvent 2012-03-11 06:48:31 ...
2
votes
1
answer
268
views
Looping across 10 columns at a time in R
I have a dataframe with 1000 columns. I am trying to loop over 10 columns at a time and use the seqdef() function from the TraMineR package to do sequence alignment across the data in those columns. ...
2
votes
1
answer
1k
views
Is it possible to make a graph with pattern fills using TraMineR and R base graphs?
enter image description hereA common problem1 2 in the publication of a sequence analysis or generally of graphs with many categorical states is that they are not easily transferable to b/w paper ...