Learn R Programming

TraMineR (version 2.2-13)

Trajectory Miner: a Sequence Analysis Toolkit

Description

Set of sequence analysis tools for manipulating, describing and rendering categorical sequences, and more generally mining sequence data in the field of social sciences. Although this sequence analysis package is primarily intended for state or event sequences that describe time use or life courses such as family formation histories or professional careers, its features also apply to many other kinds of categorical sequence data. It accepts many different sequence representations as input and provides tools for converting sequences from one format to another. It offers several functions for describing and rendering sequences, for computing distances between sequences with different metrics (among which optimal matching), original dissimilarity-based analysis tools, and functions for extracting the most frequent event subsequences and identifying the most discriminating ones among them. A user's guide can be found on the TraMineR web page.

Copy Link

Version

Install

install.packages('TraMineR')

Monthly Downloads

3,629

Version

2.2-13

License

GPL (>= 2)

Maintainer

Gilbert Ritschard

Last Published

December 14th, 2025

Functions in TraMineR (2.2-13)

disscenter

Compute distances to the center of a group
dissrf

Relative Frequency Groups.
dissmergegroups

Merging groups by minimizing loss of partition quality.
dissdomassoc

Domain association measures
disstree

Dissimilarity Tree
disstree.assign

Assign rules to profiles provided
dissmfacw

Multi-factor ANOVA from a dissimilarity matrix
disstree2dot

Graphical representation of a dissimilarity tree
disstree.get.rules

Tree classification rules
dissrep

Extracting sets of representative objects using a dissimilarity matrix
plot.seqrf

Plot method for seqrf objects of relative frequency groups of sequences.
ex2

Example data sets with weighted and unweighted sequence data
disstreeleaf

Terminal node membership
mvad

Example data set: Transition from school to work
is.stslist

Test if is a proper state sequence (stslist) object
dissvar

Dissimilarity based discrepancy
famform

Example data set: sequences of family formation
plot.seqdiff

Plotting a seqdiff object.
ex1

Example data set with missing values and weights
plot.stslist

Plot method for state sequence objects
read.tda.mdist

Read a distance matrix produced by TDA.
plot.stslist.freq

Plot method for sequence frequency tables
plot.subseqelistchisq

Plot discriminant subsequences
print.stslist

Print method for state sequence objects
plot.stslist.rep

Plot method for representative sequence sets
plot.stslist.statd

Plot method for objects produced by the seqstatd function
plot.stslist.modst

Plot method for modal state sequences
plot.stslist.meant

Plot method for objects produced by the seqmeant function
seqLLCP

Compute the length of the longest common prefix of two sequences
plot.subseqelist

Plot frequencies of subsequences
seqdecomp

Convert a character string into a vector of states or events
seqcost

Generate substitution and indel costs
seqcomp

Compare two state sequences
seqconc

Concatenate vectors of states or events into a character string
seqLLCS

Compute the length of the longest common subsequence of two sequences
seqMD

Multidomain sequences
seqalign

Computation details about a pairwise alignment
seqST

Sequences turbulence
seqeapplysub

Checking for the presence of given event subsequences
seqdomassoc

Measures of association between domains of sequence data
seqdss

Extract sequences of distinct successive states
seqecmpgroup

Identifying discriminating subsequences
seqdiff

Position-wise discrepancy analysis between groups of sequences
seqeconstraint

Setting time constraints and the counting method
seqdef

Create a state sequence object
seqecontain

Check if sequence contains events
seqdur

Extract state durations from a sequence object.
is.eseq

Event sequence object
seqdim

Dimension of a set of sequences
seqdist

Distances (dissimilarities) between sequences
seqeweight

Setting or retrieving weights of an event sequence object.
seqefsub

Searching for frequent subsequences
seqetm

Create a transition-definition matrix
seqeid

Retrieve unique ids from an event sequence object.
seqfpos

Search for the first occurrence of a given element in a sequence
seqformat

Conversion between sequence representation formats
seqelength

Lengths of event sequences
seqecreate

Create event sequence objects.
seqfind

Indexes of state sequence(s) x in state sequence object y
seqfcheck

Check if sequences are in the compressed or extended format
seqfposend

End of first spell in given state
seqipos

Indicators for binary sequences of positive and negative states.
seqici

Complexity index of individual sequences
seqindic

Sequence indicators
seqibad

Badness index
seqhasmiss

Count and identification of sequences with nr and void missings
seqgen

Random sequences generation
seqlength

Sequence length
seqivardur

Variance of spell durations in individual sequences
seqient

Within sequence entropies
seqlegend

Plot a legend for the states in a sequence object
seqivolatility

Volatility of individual state sequences
seqistatd

State frequencies in each individual sequence
seqmodst

Sequence of modal states
seqintegr

Integrative potential
seqlength.align

Align sequence length across domains
seqlogp

Logarithm of the probabilities of state sequences
seqmaintokens

Indexes of most frequent tokens
seqpm

Find substring patterns in sequences
seqmeant

Mean durations in each state
seqmpos

Number of matching positions between two sequences.
seqnum

Transform into a sequence object with numerical alphabet.
seqsep

Adds separators to sequences stored as character string
seqrep

Extracting sets of representative sequences
seqprecarity

Degradation, Precarity, and Insecurity indexes
seqpcplot

Parallel coordinate plot for sequence data
seqtab

Frequency table of the sequences
seqplot

Plot state sequence objects
seqtransn

Number of transitions in a sequence
seqsubsn

Number of distinct subsequences in a sequence.
seqstatl

List of distinct states or events (alphabet) in a sequence data set.
str.eseq

String representation of an event sequence object
seqtrate

Compute transition rates between states
stlab

Get or set the state labels of a sequence object
seqstatf

State frequencies in the whole sequence data set
seqplotMD

Plot multidomain state sequences
seqstatd

Sequence of transversal state distributions and their entropies
seqprecstart

State precarity
seqtreedisplay

Graphical rendering of a sequence regression tree
seqrecode

Recoding state sequence objects and factors
seqtree

Tree structured analysis of a state sequence object.
TraMineRInternal

Access to TraMineR internal functions
actcal

Example data set: Activity calendar from the Swiss Household Panel
TraMineR.check.depr.args

Checking and managing deprecated arguments
biofam

Example data set: Family life states from the Swiss Household Panel biographical survey
TraMineR-package

Trajectory Miner: Sequence Analysis Toolkit
alphabet

Get or set the alphabet of a state or event sequence object
dissassoc

Analysis of discrepancy from dissimilarity measures
bfspell

Example data set: First 20 biofam sequences in SPELL form
cpal

Get or set the color palette of a sequence object
actcal.tse

Example data set: Activity calendar from the Swiss Household Panel (time stamped event format)