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.

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 ...
non-numeric_argument's user avatar
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 ...
Pedro Braz's user avatar
  • 2,391
7 votes
1 answer
2k views

Displaying TraMineR (R) dendrograms in text/table format

I use the following R code to generate a dendrogram (see attached picture) with labels based on TraMineR sequences: library(TraMineR) library(cluster) clusterward <- agnes(twitter.om, diss = TRUE, ...
histelheim's user avatar
  • 5,018
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 ...
POTENZA's user avatar
  • 1,417
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,...
Maxim.K's user avatar
  • 4,150
6 votes
1 answer
635 views

Using Time Diary Data with TraMineR

I am trying to do sequence analysis using time-diary data (American Time Use Survey) using TraMineR in R. I have the data as SPELL data (id, start time, stop time, event) but I receive the following ...
mCorey's user avatar
  • 295
5 votes
1 answer
2k views

Pretty dendrograms in R?

My dendrograms are horribly ugly, on the verge of unreadable, and usually look like this: library(TraMineR) library(cluster) data(biofam) lab <- c("P","L","M","LM","C","LC","LMC","D") biofam.seq &...
histelheim's user avatar
  • 5,018
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 ...
maycobra's user avatar
  • 437
5 votes
2 answers
1k views

Sequence index plots in ggplot2 using geom_tile( )

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. I do: library(ggplot2) library(TraMineR) library(dplyr) ...
Kenji's user avatar
  • 581
5 votes
1 answer
640 views

Parallel computing for TraMineR

I have a large dataset with more than 250,000 observations, and I would like to use the TraMineR package for my analysis. In particular, I would like to use the commands seqtreeand seqdist, which ...
Flow's user avatar
  • 735
5 votes
1 answer
452 views

Variable indel costs for sequences of unequal length

I am doing Sequence Analysis in TraMineR using the Optimal Matching algorithm. Unfortunately, my sequences are of unequal length due to right-censored data. The minimum length of my sequences is 5, ...
elisabet112's user avatar
5 votes
2 answers
380 views

Using "by" for creating multiple graph titles

I am trying to use "by" of "for" in order to create many subgraphs using one or two group variables. Both group variables are a factor variables (sex is a dummy and father's social status has multiple ...
user avatar
4 votes
1 answer
287 views

Definition of sequence notation...(A), (A>B), and (A) - (A>B)

Hopefully a quick one .... Regarding the output from seqefsub() operations, please point me to a definition of the output notation. To be more specific, the parentheses in e.g. (A) means what; ...
Big Old Dave's user avatar
4 votes
1 answer
759 views

Seqfplot: percentage vs. number of most frequent sequences?

I'm using the R packages TraMineR to compute and analyze state sequences. I would like to obtain a sequence frequency plots using the command seqfplot. However, instead of setting the number of the ...
emanuela.struffolino's user avatar
4 votes
1 answer
117 views

Traminer: Mean time barplot with number of observations

Because I am still new to TraMineR, my problem may seem trivial to most of you. I'm working on meantime plots with my data and would I like to plot on the bar charts the mean time spent in different ...
Rstudent's user avatar
  • 885

15 30 50 per page
1
2 3 4 5
15