Skip to main content

Questions tagged [traminer]

The R TraMineR library is a toolkit for exploring and rendering categorical sequence data such as sequences describing family life trajectories or professional careers. This CV "traminer" tag is intended for conceptual questions about the analyses that can be done with the library as well as more general questions about sequence analysis. For TraMineR coding questions use the "traminer" tag under StackOverflow.

Filter by
Sorted by
Tagged with
1 vote
1 answer
33 views

Optimal sequence analyses and hypothesis testing

I am working with data in R using the TraMineR package. I am fairly new to this type of analysis, so please bear with me. I have a list of unique states (Ex: "NN", "s2s", "...
1 vote
1 answer
550 views

Handling missing data in Sequence Analysis (TraMineR) within the observation window

I'm using sequence analysis. I have a question about how to deal with missing data within the observation window. The starting point of the analysis is when respondents leave secondary school (t0). I ...
0 votes
1 answer
53 views

Treat left missing values as void in sequence analysis

I am doing sequence analysis using Traminer and I have employment sequences from age 51 to age 75. However, because some participants enter the survey after age 51, some of the sequences start later (...
1 vote
0 answers
399 views

Sequence analysis and clustering of multiple object

My data set are like this ...
2 votes
2 answers
103 views

How do I approach this problem about the order of the events?

So let's imagine I have a dataset of children. For each of them a have a bunch of characteristics (generation, gender, race, class, urban/rural, religion, bmi, number of siblings etc..) and plus the ...
3 votes
2 answers
213 views

Looking for distance metrics for trajectories of state sequences, based on nearness in time

I am working with data on individual trajectories, defined as a categorical state defined for each time period, using R's TraMineR package to visualize and calculate distances between each pair of ...
1 vote
1 answer
135 views

Multichannel distance from a reference sequence

I am working with a large dataset and applying multichannel sequence analysis to two life course domains. I would like to adapt a solution suggested in the post below to multichannel sequences, but I ...
2 votes
1 answer
89 views

Hierarchy of states in TraMineR

I am considering using TraMineR to analyze my data. However, before I do, I would like to know if it can handle hierarchical states, and I could not find the answer to this question in the ...
4 votes
2 answers
261 views

How to interpret p-values in output of seqecmpgroup()?

The seqecmpgroup() function returns a table that, among other things, include p-values for each identified subsequence. How should these be interpreted? I can see ...
1 vote
1 answer
130 views

Viewing automated cost matrix for DHD in TraMineR

I'm using social sequence analysis, and comparing between different distance methods for my data. I'm wondering if there is a way to view/call the automatic substitution cost matrix that the dynamic ...
6 votes
1 answer
1k views

What's the algorithm for finding sequences used by TraMineR?

I'm working an analysis about finding frequent sequences in a event-state dataset using the R package TraMineR (and ...
0 votes
1 answer
77 views

What is the specific normalization chi2 in seqdist?

In the documentation for the seqdist() function it is noted that there is "...a specific normalization for"CHI2" and "EUCLID". See the Details section." (p.60). But in the details section there is no ...
1 vote
1 answer
87 views

How does the TraMiner Package Calculate Standard Error Using Weighted Data?

The TraMiner Package includes an option to include sampling weights in the analysis. However, I haven't found any discussion in the package documentation (or associated user manual) of how standard ...
2 votes
1 answer
1k views

Aligning and clustering sequences of events

I have some data describing sequences of events. There are a number of different events (over 30), and the data records which event occurred in what order. There are no fixed number of events that ...
5 votes
1 answer
4k views

Analyzing Sankey diagrams statistically?

Sankey diagrams are helpful for visualizing multiple, interacting processes: Are there any statistical tools available that can analyze the interactions of multiple processes? I'm aware of sequence ...
2 votes
1 answer
90 views

Identifying discriminant event subsequences among 3 groups

I am using TraMineR to identifying discriminant event subsequences among 3 groups. In the user guide, it does not mention how to interpret p-value when 3 groups are compared. Here is a part of my ...
3 votes
1 answer
509 views

Detecting outlier sequences in clusters

My question is a general one: I have sequences of categorical variables (click stream) that I analyzed using TraMineR. I now want to conduct cluster analysis (CA) using the WeightedCluster package. ...
2 votes
1 answer
72 views

Method for discriminating power in seqecmpgroup()

In the document for function seqecmpgroup(): "subsequences are then ordered by decreasing discriminant power." Just wondering what is the method to compute the value? It looks like the 'statistic' ...
0 votes
1 answer
111 views

Residual / explained variance TraMineR

Can someone explain to me, how the explained / residual variance from the dissassoc command is computed? I tried to add up the variance within using the ...
3 votes
1 answer
396 views

TraMineR: predicting class membership of new sequences

Question summary This question pertains to analyzing dissimilarities between discrete state sequences (e.g., using TraMineR), more specifically to classifying new, ...
2 votes
1 answer
164 views

Inter-rater reliability for sequential data

I have 20 sequences that were coded by 2 judges, for example: Sequence 1, Judge 1: A-B-C-A-B-E-F Sequence 1, Judge 2: A-B-E-C-A-B-F I want to check the inter-rater reliability. Any suggestions on how ...
1 vote
1 answer
47 views

concurrent states

I plan to use TraMineR for a research study on student course-taking patterns in secondary schools. For instance – Algebra, Geometry, Algebra II, etc. – where each course is a state. I wondered how to ...
2 votes
1 answer
71 views

Testing pdist() for statistical significance

Using pdist() in the PST package, two probabilistic suffix trees (PSTs) can be compared to each other. The function will output ...
0 votes
0 answers
103 views

Is there any sequence dissimilarity measure that has an intuitive interpretation like the dissimilarity index has?

I want to know how much the sequences in my sample differ from a given ideal-typical sequence. Is there any intuitive way of interpreting the dissimilarity measures for sequences? If it would be the ...
2 votes
1 answer
208 views

How to get a distance matrix using "SVRspell"?

I am trying to compute a distance matrix using the method "SVRspell" (seqdistOO function). I want to use an exponential weight of spell length equal to 2 and I want to discard matching sub-sequences ...
4 votes
1 answer
709 views

Why use K-medoids for sequence analysis?

In the package WeightedCluster there seems to be facilities for using K-medoids clustering (i.e. wcKMedoids()), but not the more ...
2 votes
1 answer
141 views

TraMineR - dont print message of seqdef

Is there a possibility to disable the initial message (1) when creating a sequence with seqdef library(TraMineR) ? (1) this ...
3 votes
1 answer
1k views

Mean and Variance of a Set of Sequences

I am trying to find the probability distribution (like mean and variance) of a set of sequences which have different length. I came into different measurement models that quantify the distance between ...
2 votes
1 answer
89 views

How the total pseudo R2 is calculated with the "dissmfac" function in TraMineR?

I am using the discrepancy analysis in TraMineR. I performed univariate analysis with "dissassoc" to measure the effect of each variable. Then, I did a multi-factors analysis using "dissmfac" to ...
2 votes
1 answer
108 views

Why does the row order of the sequences in TraMineR influence clustering results (Wards method)?

We have a large sample (44,933 sequences each of potential length 35) with 9 states. We create a standard dissimilarity matrix: ...
3 votes
1 answer
616 views

Optimal matching distances

If I have two sequences: 1: A-B-C-D 1: X-A-B-C-D and I do: library(TraMineR) seqdist(sequence1, sequence2, method = "OM") ...
1 vote
1 answer
650 views

How to count the number of transitions between states in TraMineR?

Is there any way of getting a matrix with the count of transitions between states?. Something similar to the "seqtrate()" but containing the number of transitions instead of just the transitions rate? ...
2 votes
1 answer
91 views

Length-dependent indel costs in OMA algorithm?

I re-read this article after a long time (this time paying attention to the fine print) and noticed that they use indel costs that depend on sequence length in their OMA. They argue that it is done to ...
2 votes
1 answer
183 views

Maximum cost in Optimal Matching in TraMineR

Sorry if this question was already asked. I'm new to sequence analysis, I'm using TraMineR to analyze some sequences with the Optimal Matching. But I need to know the maximum possible cost that can ...
4 votes
2 answers
227 views

Position-dependent substitution cost matrix for sequence alignment

Many sequence alignment algorithms and those which measure similarity between sequences require specification of a cost matrix defined on the sequence alphabet. However, the cost incurred does not ...
5 votes
1 answer
498 views

Sequence analysis - Clusters quality - Time Use

I am trying to run sequence clustering on time use data but I fail to have "acceptable" clustering solution according to Studer (2010). The sequences have 76 episodes of 15 minutes slots (12 states)....
2 votes
1 answer
654 views

How to do distance calculation and clustering for event sequences in TraMineR?

I've been using TraMineR for a while now, even though I consider myself a begginer user. The same goes for R language. Yet, I've been able to successfully perform a few optimal matching analysis. Now ...
1 vote
1 answer
263 views

How to use cost of matching with substitution-cost matrix in OM TraMiner?

I have a little complicated alphabet. I have for example: 1. A1|B1 2. A1|B2 3. A2|B3 So, dissimilarity between A1|B1 and A2|B3 =1, but dissimilarity between A1|...
1 vote
0 answers
106 views

How to force a division in tree and locate covariates that explain the variable in TraMineR?

my goal here is simple: I have a bunch of sequences, and a few sequences of interest (that do contain a certain subsequence). I want to force that division and use a tree method (either CART or CHAID)...
3 votes
1 answer
346 views

How to do centroid clustering of sequences?

I want to cluster sequences using centroids. In the hclust package it is noted that "Method "centroid" is typically meant to be used with squared Euclidean ...
4 votes
2 answers
1k views

Mining patterns in continuous sequence

I have data in form of $N$ sequences $s_j=(t_i, e_i)_{i\in\{1,\ldots,n_j\}}$ with $n_j$ data-points each, where $t_i$ is a time-stamp and $e_i$ is a categorial event, say $e_i\in\{A,B,C,D\}$. The $N$ ...
4 votes
1 answer
2k views

Comparing two sequence objects?

Using TraMineR, is it possible to compare two sequence objects to calculate the discrepancy between them? By this I mean not comparing two sequences but two sets of ...
1 vote
1 answer
1k views

"NAs introduced by coercion" in seqecreate

I am using seqecreate to specify an event sequence object using TraMineR. The dataset has 1271 rows and 4 columns, an id, ...
4 votes
1 answer
375 views

How to measure multichannel distances between "event" sequences?

In TraMineR, seqdistmc is used to measure multichannel distances between "state" sequences. I am wondering if there is a function to measure multichannel distances between "event" sequences.
4 votes
1 answer
1k views

Entropy of state distribution, complexity index and turbulence for sequences of varying length

I have a dataset of varying sequence lengths and want to calculate descriptive measured for it. The main cause of differing lengths is that some cases are right censored, and are dealt properly when ...
2 votes
1 answer
243 views

What is the role of log2 in Elzinga's turbulence measure?

Elzinga's turbulence measure (TraMineR User's Guide, p. 85) is the log2 of the number of "distinct subsequences that can be extracted from the distinct state sequence" multiplied by "the variance of ...
6 votes
2 answers
1k views

Should normalization completely weed out correlation?

I have two variables: ordering & length. The former measures the ordering of a sequence (i.e. all permutations of A-B-C), and the former is the length of the sequence (i.e. A-B-C has a length of 3)...
4 votes
1 answer
374 views

Sampling from sequence data

I work with 4 sequence datasets that I want to compare. The datasets range from roughly 150 to 2000 sequences. I've been able to use TraMineR on datasets up to 1000 sequences long, but when I try to ...
4 votes
2 answers
232 views

minimum criteria for datasets used with TraMineR

I posted this to the TraMineR user list and it was suggested that it would be appropriate to post it here as well. Any suggestions as to how to determine the minimum dataset size and missingness ...
4 votes
2 answers
745 views

Comparing clustering of sequences in datasets with different N?

When doing sequence analysis using a package such as TraMineR, one can calculate a clustering based on Optimal Matching (OM) distances, and then plot it as a tree. ...