Learn R Programming

⚠️There's a newer version (2.2-11) of this package.Take me there.

TraMineR (version 1.1)

Sequences and trajectories mining for social scientists

Description

This package is a toolbox for sequence manipulation, description, rendering and more generally sequence data mining in the field of social sciences. Though it is primarily intended for analyzing state or event sequences that describe life courses such as family formation histories or professional careers its features apply indeed also to many other kinds of categorical sequence data. It accepts as input many different sequence representations and provides tools for translating sequences from one format to another. It offers several statistical functions for describing and rendering sequences, for computing distances between sequences with different metrics among which optimal matching, the longest common prefix and the longest common subsequence, and simple functions for extracting the most frequent subsequences and identifying the most discriminating ones among them.

Copy Link

Version

Install

install.packages('TraMineR')

Monthly Downloads

2,845

Version

1.1

License

GPL (>= 2)

Maintainer

Alexis Gabadinho

Last Published

December 8th, 2024

Functions in TraMineR (1.1)

disscenter

Compute distance to center of a group
alphabet

Get or set the alphabet of a sequence object
seqfind

Find the occurrences of sequence(s) x in the set of sequences y
seqdim

Returns the dimension of a set of sequences
seqcomp

Compare two sequences
seqdist

Distances between sequences
mvad

Example data set: Transition from school to work
seqient

Within sequences entropy
seqtab

Sequences frequency table
seqdplot

Plot the sequence of state distributions
biofam

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

Sequence length
disstreeleaf

Terminal node appartenance
plot.subseqelist

Plot frequencies of subsequences
seqetm

Creating event transition matrix
seqefsub

Searching for frequent subsequences
seqnum

Translate a sequence object's alphabet into numerical alphabet, ranging 0-(nbstates-1).
plot.subseqelistchisq

Ploting discriminant subsequences
seqconc

Concatenate vectors of states or events into a character string
seqecreate

Create event sequence objects.
seqformat

Translation between sequence formats
actcal

Example data set: Activity calendar from the Swiss Household Panel
is.seqe

Event sequences object
dissreg

Regression analysis of dissimilarity matrix
seqLLCP

Compute the length of the longest common prefix of two sequences
seqfplot

Graphic presenting the frequency of sequences
seqstatl

List of distinct states or events (alphabet) for a sequence data set.
seqecontain

Event sequence contains event
seqST

Sequences turbulence
dissassoc

Analysis of pseudo-variance based on dissimilarity measure
seqLLCS

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

Extracts states durations from a sequence object.
read.tda.mdist

Read a distance matrix produced by TDA.
dissvar

Dissimilarity based pseudo variance
seqelength

Length of event sequences
seqdef

Create a sequence object
str.seqe

String representation of sequence object
seqeconstraint

Setting time constraint
seqecmpgroup

Identifying discriminating subsequences
seqgen

Random sequences generation
seqmtplot

Graphic presenting the mean time spent in each state of the alphabet
seqsep

Adds separators to sequences stored as character string.
famform

Example data set: sequences of family formation
seqmpos

Number of matching positions between two sequences.
seqiplot

Visualization of individual sequences
seqdecomp

Convert a character string into a vector of states or events
actcal.tse

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

Compute transition rates between states
seqsubsn

Number of distinct subsequences in a sequence.
seqfcheck

Check if sequences are in the compressed or extended format
seqdss

Extract distinct states sequence from a sequence object
seqdiff

Decompose the diffences between groups of sequences
disstree

Dissimilarity Tree
disstree2dot

Graphical representation of a dissimilarity tree
seqfpos

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

States frequency for each individual sequence
seqsubm

Create a substitution-cost matrix
seqeapplysub

Applying Subsequences to Event Sequences
seqeid

Retrieve id of an event sequence object.
seqstatd

Sequence of the states frequency tables and entropy of the states distributions
seqlegend

Plot a legend for the states in a sequence object
cpal

Get or set the color palette of a sequence object
seqpm

Find patterns in sequences