Package: TraMineR 2.2-11

Gilbert Ritschard

TraMineR: Trajectory Miner: a Sequence Analysis Toolkit

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.

Authors:Alexis Gabadinho [aut, cph], Matthias Studer [aut, cph], Nicolas Müller [aut], Reto Bürgin [aut], Pierre-Alexandre Fonta [aut], Gilbert Ritschard [aut, cre, cph]

TraMineR_2.2-11.tar.gz
TraMineR_2.2-11.tar.gz(r-4.5-noble)TraMineR_2.2-11.tar.gz(r-4.4-noble)
TraMineR_2.2-11.tgz(r-4.4-emscripten)TraMineR_2.2-11.tgz(r-4.3-emscripten)
TraMineR.pdf |TraMineR.html
TraMineR/json (API)
NEWS

# Install 'TraMineR' in R:
install.packages('TraMineR', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • actcal - Example data set: Activity calendar from the Swiss Household Panel
  • actcal.tse - Example data set: Activity calendar from the Swiss Household Panel
  • bfpdata20 - Example data set: First 20 biofam sequences in SPELL form
  • bfspell20 - Example data set: First 20 biofam sequences in SPELL form
  • biofam - Example data set: Family life states from the Swiss Household Panel biographical survey
  • ex1 - Example data set with missing values and weights
  • ex2.unweighted - Example data sets with weighted and unweighted sequence data
  • ex2.weighted - Example data sets with weighted and unweighted sequence data
  • famform - Example data set: sequences of family formation
  • mvad - Example data set: Transition from school to work

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

cpp

8.24 score 11 stars 13 packages 530 scripts 2.5k downloads 38 mentions 125 exports 11 dependencies

Last updated 18 days agofrom:5a18c5c876. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKDec 08 2024
R-4.5-linux-x86_64OKDec 08 2024

Exports:alphabetalphabet<-cpalcpal<-dissassocdisscenterdissdomassocdissmergegroupsdissmfacwdissrepdissrfdisstreedisstree.assigndisstree.get.rulesdisstree2dotdisstree2dotpdisstreedisplaydisstreeleafdissvargower_matrixis.eseqis.seqelistis.stslistread.tda.mdistrecodefseqalignseqcompseqconcseqcostseqdecompseqdefseqdHplotseqdiffseqdimseqdistseqdistmcseqdomassocseqdplotseqdssseqdurseqeapplysubseqecmpgroupseqeconstraintseqecontainseqecreateseqefsubseqeidseqelengthseqelength<-seqetmseqeweightseqeweight<-seqfcheckseqfindseqformatseqfplotseqfposseqfposendseqgenseqhasmissseqHtplotseqibadseqiciseqidegradseqientseqindicseqinsecurityseqintegrseqintegrationseqiplotseqIplotseqiposseqistatdseqivardurseqivolatilityseqlegendseqlengthseqlength.alignseqLLCPseqLLCSseqlogpseqmaintokensseqMDseqmeantseqmodstseqmposseqmsplotseqmtplotseqnumseqpcfilterseqpcplotseqplotseqplotMDseqpmseqprecarityseqprecorrseqprecstartseqrecodeseqrepseqrfseqrfplotseqrplotseqsepseqSTseqstatdseqstatfseqstatlseqsubmseqsubsnseqtabseqtransnseqtrateseqtreeseqtree2dotseqtreedisplaystlabstlab<-TraMineR.check.depr.argsTraMineRInternalLayoutTraMineRInternalLegendTraMineRInternalNodeInitTraMineRInternalSeqeageTraMineRInternalSeqgbarTraMineRInternalSplitInitTraMineRInternalWeightedInertiaDist

Dependencies:bootclustercolorspacelatticeMASSMatrixmgcvnlmepermuteRColorBrewervegan

Analyzing and Visualizing State Sequences

Rendered fromTraMineR-state-sequence.Rnwusingutils::Sweaveon Dec 08 2024.

Last update: 2019-11-19
Started: 2013-08-26

Readme and manuals

Help Manual

Help pageTopics
Trajectory Miner: Sequence Analysis ToolkitTraMineR-package TraMineR
Example data set: Activity calendar from the Swiss Household Panelactcal
Example data set: Activity calendar from the Swiss Household Panel (time stamped event format)actcal.tse
Get or set the alphabet of a state or event sequence objectalphabet alphabet<-
Example data set: First 20 biofam sequences in SPELL formbfpdata20 bfspell bfspell20
Example data set: Family life states from the Swiss Household Panel biographical surveybiofam
Get or set the color palette of a sequence objectcpal cpal<-
Analysis of discrepancy from dissimilarity measuresdissassoc hist.dissassoc print.dissassoc
Compute distances to the center of a groupdisscenter
Domain association measuresdissdomassoc summary.ddomassoc
Merging groups by minimizing loss of partition quality.dissmergegroups
Multi-factor ANOVA from a dissimilarity matrixdissmfacw gower_matrix print.dissmultifactor
Extracting sets of representative objects using a dissimilarity matrixdissrep
Relative Frequency Groups.dissrf print.dissrf print.seqrf seqrf summary.dissrf summary.seqrf
Dissimilarity Treedisstree print.disstree
Assign rules to profiles provideddisstree.assign
Tree classification rulesdisstree.get.rules
Graphical representation of a dissimilarity treedisstree2dot disstree2dotp seqtree2dot
Terminal node membershipdisstreeleaf
Dissimilarity based discrepancydissvar
Example data set with missing values and weightsex1
Example data sets with weighted and unweighted sequence dataex2 ex2.unweighted ex2.weighted
Example data set: sequences of family formationfamform
Test if is a proper state sequence (stslist) objectis.stslist
Example data set: Transition from school to workmvad
Plotting a seqdiff object.plot.seqdiff
Plot method for seqrf objects of relative frequency groups of sequences.plot.seqrf
Plot method for state sequence objectsplot.stslist
Plot method for sequence frequency tablesplot.stslist.freq
Plot method for objects produced by the seqmeant functionplot.stslist.meant
Plot method for modal state sequencesplot.stslist.modst
Plot method for representative sequence setsplot.stslist.rep
Plot method for objects produced by the seqstatd functionplot.stslist.statd
Plot frequencies of subsequencesplot.subseqelist
Plot discriminant subsequencesplot.subseqelistchisq
Print method for state sequence objectsprint.stslist
Read a distance matrix produced by TDA.read.tda.mdist
Computation details about a pairwise alignmentplot.seqalign print.seqalign seqalign
Compare two state sequencesseqcomp
Concatenate vectors of states or events into a character stringseqconc
Generate substitution and indel costsseqcost seqsubm
Convert a character string into a vector of states or eventsseqdecomp
Create a state sequence objectrbind.stslist seqdef summary.stslist
Position-wise discrepancy analysis between groups of sequencesprint.seqdiff seqdiff
Dimension of a set of sequencesseqdim
Distances (dissimilarities) between sequencesseqdist
Measures of association between domains of sequence dataprint.sdomassoc seqdomassoc
Extract sequences of distinct successive statesseqdss
Extract state durations from a sequence object.seqdur
Checking for the presence of given event subsequencesseqeapplysub
Identifying discriminating subsequencesseqecmpgroup
Setting time constraints and the counting methodprint.seqeconstraint seqeconstraint
Check if sequence contains eventsseqecontain
Create event sequence objects.seqecreate
Searching for frequent subsequencesis.subseqelist print.subseqelist seqefsub
Retrieve unique ids from an event sequence object.seqeid
Lengths of event sequencesseqelength seqelength<-
Create a transition-definition matrixseqetm
Setting or retrieving weights of an event sequence object.seqeweight seqeweight<-
Indexes of state sequence(s) x in state sequence object yseqfind
Conversion between sequence formatsseqformat
Search for the first occurrence of a given element in a sequenceseqfpos
End of first spell in given stateseqfposend
Random sequences generationseqgen
Count and identification of sequences with nr and void missingsseqhasmiss
Badness indexseqibad
Complexity index of individual sequencesseqici
Within sequence entropiesseqient
Sequence indicatorsseqindic
Integrative potentialseqintegr seqintegration
Indicators for binary sequences of positive and negative states.seqipos
State frequencies in each individual sequenceseqistatd
Variance of spell durations in individual sequencesprint.seqivardur seqivardur
Volatility of individual state sequencesseqivolatility
Plot a legend for the states in a sequence objectseqlegend
Sequence lengthseqlength
Align sequence length across domainsseqlength.align
Compute the length of the longest common prefix of two sequencesseqLLCP
Compute the length of the longest common subsequence of two sequencesseqLLCS
Logarithm of the probabilities of state sequencesseqlogp
Indexes of most frequent tokensseqmaintokens
Multidomain sequencesseqdistmc seqMD
Mean durations in each stateseqmeant
Sequence of modal statesseqmodst
Number of matching positions between two sequences.seqmpos
Transform into a sequence object with numerical alphabet.seqnum
Parallel coordinate plot for sequence dataplot.eseq plot.seqelist seqpcfilter seqpcplot
Plot state sequence objectsseqdHplot seqdplot seqfplot seqHtplot seqIplot seqiplot seqmsplot seqmtplot seqplot seqrfplot seqrplot
Plot multidomain state sequencesseqplotMD
Find substring patterns in sequencesseqpm
Degradation, Precarity, and Insecurity indexesprint.seqidegrad print.seqprec seqidegrad seqinsecurity seqprecarity seqprecorr
State precarityseqprecstart
Recoding state sequence objects and factorsrecodef seqrecode
Extracting sets of representative sequencesseqrep
Adds separators to sequences stored as character stringseqsep
Sequences turbulenceseqST
Sequence of transversal state distributions and their entropiesseqstatd
State frequencies in the whole sequence data setseqstatf
List of distinct states or events (alphabet) in a sequence data set.seqstatl
Number of distinct subsequences in a sequence.seqsubsn
Frequency table of the sequencesprint.stslist.freq seqtab
Number of transitions in a sequenceseqtransn
Compute transition rates between statesseqtrate
Tree structured analysis of a state sequence object.seqtree
Graphical rendering of a sequence regression treedisstreedisplay seqtreedisplay
Get or set the state labels of a sequence objectstlab stlab<-
Checking and managing deprecated argumentsTraMineR.check.depr.args
Access to TraMineR internal functionsTraMineRInternalLayout TraMineRInternalLegend TraMineRInternalNodeInit TraMineRInternalSeqeage TraMineRInternalSeqgbar TraMineRInternalSplitInit TraMineRInternalWeightedInertiaDist