Learn R Programming

TraMineR (version 2.2-12)

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

2,863

Version

2.2-12

License

GPL (>= 2)

Maintainer

Gilbert Ritschard

Last Published

June 29th, 2025

Functions in TraMineR (2.2-12)

disscenter

Compute distances to the center of a group
dissrf

Relative Frequency Groups.
dissmergegroups

Merging groups by minimizing loss of partition quality.
dissrep

Extracting sets of representative objects using a dissimilarity matrix
dissdomassoc

Domain association measures
disstree.assign

Assign rules to profiles provided
disstree

Dissimilarity Tree
disstree2dot

Graphical representation of a dissimilarity tree
disstree.get.rules

Tree classification rules
dissmfacw

Multi-factor ANOVA from a dissimilarity matrix
plot.seqrf

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

Example data set with missing values and weights
famform

Example data set: sequences of family formation
mvad

Example data set: Transition from school to work
disstreeleaf

Terminal node membership
plot.seqdiff

Plotting a seqdiff object.
is.stslist

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

Dissimilarity based discrepancy
read.tda.mdist

Read a distance matrix produced by TDA.
plot.subseqelistchisq

Plot discriminant subsequences
seqLLCP

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

Plot method for state sequence objects
plot.stslist.rep

Plot method for representative sequence sets
ex2

Example data sets with weighted and unweighted sequence data
plot.stslist.modst

Plot method for modal state sequences
seqdecomp

Convert a character string into a vector of states or events
plot.stslist.statd

Plot method for objects produced by the seqstatd function
seqST

Sequences turbulence
seqalign

Computation details about a pairwise alignment
plot.subseqelist

Plot frequencies of subsequences
seqconc

Concatenate vectors of states or events into a character string
seqdiff

Position-wise discrepancy analysis between groups of sequences
seqcost

Generate substitution and indel costs
plot.stslist.freq

Plot method for sequence frequency tables
plot.stslist.meant

Plot method for objects produced by the seqmeant function
print.stslist

Print method for state sequence objects
seqMD

Multidomain sequences
seqLLCS

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

Compare two state sequences
seqdef

Create a state sequence object
seqdim

Dimension of a set of sequences
seqeapplysub

Checking for the presence of given event subsequences
seqdur

Extract state durations from a sequence object.
seqecmpgroup

Identifying discriminating subsequences
seqdist

Distances (dissimilarities) between sequences
seqecontain

Check if sequence contains events
seqeconstraint

Setting time constraints and the counting method
is.eseq

Event sequence object
seqdomassoc

Measures of association between domains of sequence data
seqdss

Extract sequences of distinct successive states
seqefsub

Searching for frequent subsequences
seqecreate

Create event sequence objects.
seqetm

Create a transition-definition matrix
seqformat

Conversion between sequence representation formats
seqelength

Lengths of event sequences
seqfpos

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

Retrieve unique ids from an event sequence object.
seqeweight

Setting or retrieving weights of an event sequence object.
seqfposend

End of first spell in given state
seqhasmiss

Count and identification of sequences with nr and void missings
seqibad

Badness index
seqintegr

Integrative potential
seqfcheck

Check if sequences are in the compressed or extended format
seqfind

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

Random sequences generation
seqici

Complexity index of individual sequences
seqindic

Sequence indicators
seqipos

Indicators for binary sequences of positive and negative states.
seqistatd

State frequencies in each individual sequence
seqivolatility

Volatility of individual state sequences
seqlegend

Plot a legend for the states in a sequence object
seqient

Within sequence entropies
seqivardur

Variance of spell durations in individual sequences
seqlength.align

Align sequence length across domains
seqmodst

Sequence of modal states
seqmeant

Mean durations in each state
seqmaintokens

Indexes of most frequent tokens
seqmpos

Number of matching positions between two sequences.
seqsep

Adds separators to sequences stored as character string
seqprecarity

Degradation, Precarity, and Insecurity indexes
seqplot

Plot state sequence objects
seqrep

Extracting sets of representative sequences
seqplotMD

Plot multidomain state sequences
seqpm

Find substring patterns in sequences
seqrecode

Recoding state sequence objects and factors
seqprecstart

State precarity
seqlength

Sequence length
seqtrate

Compute transition rates between states
seqstatl

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

Number of distinct subsequences in a sequence.
seqstatd

Sequence of transversal state distributions and their entropies
seqlogp

Logarithm of the probabilities of state sequences
seqnum

Transform into a sequence object with numerical alphabet.
seqtree

Tree structured analysis of a state sequence object.
seqtreedisplay

Graphical rendering of a sequence regression tree
seqpcplot

Parallel coordinate plot for sequence data
str.eseq

String representation of an event sequence object
seqstatf

State frequencies in the whole sequence data set
stlab

Get or set the state labels of a sequence object
seqtab

Frequency table of the sequences
seqtransn

Number of transitions in a sequence
cpal

Get or set the color palette of a sequence object
TraMineR.check.depr.args

Checking and managing deprecated arguments
TraMineRInternal

Access to TraMineR internal functions
dissassoc

Analysis of discrepancy from dissimilarity measures
biofam

Example data set: Family life states from the Swiss Household Panel biographical survey
actcal

Example data set: Activity calendar from the Swiss Household Panel
TraMineR-package

Trajectory Miner: Sequence Analysis Toolkit
bfspell

Example data set: First 20 biofam sequences in SPELL form
actcal.tse

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

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