Changes in version 2.2-13 (2025-12-14) Changes in existing functions o plot.stslist(), plot method for object of class stslist, gains new attributes sampling and sample.meth to plot only a subsample of the sequences. Handy when large number of sequences must be plotted. o dissrf(), weights are normalized to sum up to the number of cases and, when k=1, computation is skipped and the overall medoid of the data is returned. o dissrf(), explicit warnings when negative degrees of freedom. Bug fixes o plot.stslist(), plot method for object of class stslist: bad weight assignment when idxs is not seq(1, to=length(idxs)). o Subsetting state sequence (stslist) objects with [] did not work when selecting columns with column names. Misc. o Authors added in description of provided data sets. o Examples added in description of biofam, mvad, actcal, and famform data sets. o Fixed outdated and non-canonical URLs in vignette. Changes in version 2.2-12 (2025-06-29) Bug fixes o dissdomassoc(): issue with ties when ranking values for spearman correlation. o disscenter(): wrong distance values returned when allcenter=TRUE. o seqformat(): useless test on covar when to is not "SRS". o seqformat() with from="SPELL" (SPELL_to_STS): unreadable list of cases with spells ending before start time. o seqformat(): several internal checkindexes() badly specified. Changes in version 2.2-11 (2024-12-08) Changes in existing functions o dissrep(): when all distances are zero, the number nb of cases in the neighborhood of the representative is set as the sum of weights (was zero in previous versions) Bug fixes o dissrep() error when seqdata is a single sequence. o seqecreate() (and tmrsequenceseveral cpp function): segfault error when intEvent is NULL. (Fix required by Brian Ripley) Changes in version 2.2-10 (2024-05-21) New functions o dissmergegroups() merges groups so as to minimize loss of partition quality. o seqhasmiss() count and identification of sequences with missings. Changes in existing functions o seqdist() new argument opt.args to test non-documented arguments at development stage. o seqdef() now raises an error when it finds negative or NA weights. o seqprecstart() includes derived state.order and state.equiv as attributes of returned object. Bug fixes o seqcost() method="INDELSLOG" returned NA costs for token 0 when alphabet is numeric. o print.stslist(, format="SPS") error with some version of R. o plot.stslist.statd(type="dH") error when xtstep > 1. o plot.stslist.statd(type="Ht") argument main was ignored. o plot.stslist.statd(type="Ht") displayed useless x-label "Index" when xlab=NULL. o seqdHplot() and seqplot(,type="dH") use col.entr instead of col to control color of overlayed entropy because of name conflict. o seqidegrad() and seqinsecurity: unexpected results when order of undesirableness degrees provided with stprec differed from alphabet order. o seqdomassoc() error when only two domains. o noRemap issues. Changes in version 2.2-9 (2024-01-08) Changes in existing functions o All TraMineR plot functions: improved support of graphical parameters. (E.g., las and cex.axis can now be used to control the display of tick labels.) o seqdist() transforms kweights into vector rep(kweights,ncol(seqdata)) when it is scalar. o seqdist() raises a warning when the vector kweights is shorter than the number of columns in seqdata. Bug fixes o seqdef(): lack of separation between found tokens not listed in the alphabet. o seqdist(): error when all DSS have length 1 and method is one of OMspell, NMSMST, and SVRspell. o seqdist(): error when all DSS are identical with length 1 and method is OMstran. o seqdist() with method="OMstran": returned distance matrix was not labeled with sequence rownames. o Issues with lost braces in .Rd files (NOTE in CRAN check) Changes in version 2.2-8 (2023-09-18) New functions o disstree.get.rules() character string vector of the classification rules of a disstree as R commands. o disstree.assign() determines the index of the rules that apply to the provided profiles. Changes in exiting functions o seqST() When number phi of subsequences is NaN, it is set as .Machine$double.xmax to compute turbulence and a warning is raised. o seqplot() and seqplotMD(): when type="f", the yaxis argument can now also be "pct" or "left.pct". o seqrep() and dissrep(): returned object gains attributes Rep.group with the representative to which each object is assigned, and idx.rep a list with indexes of all occurrences of each representative. o seqtreedisplay() and seqtree2dot(): argument axes is deprecated and replaced by xaxis to be conformable with seqplot. o disstreedisplay() and seqtreedisplay() now raise an error when the file filename of the image cannot be created. o disstreeleaf() gains an argument collapse to control separator within classes of categories. Bug fixes o seqfplot() and seqplot(type="f"): option yaxis="pct" did no longer work after update to v 2.2-7. o disstreedisplay() and seqtreedisplay() did not find the GraphViz path. o disstreedisplay() and seqtreedisplay() uselessly printed TRUE when filename was not NULL. Changes in version 2.2-7 (2023-03-31) New functions o seqplotMD() plot of multidomain/multichannel sequences by domain and group. o seqdomassoc() pairwise state association between domains. Changes in exiting functions o dissrf() and seqrf() sortv="mds" is now the default and sortv=NULL selects the original seqdata order. o seqrfplot() (seqplot(..., type="rf", ...)) with option sortv="mds" (new default in seqrf) the MDS sorting is done on the whole seqdata instead of independently for each group. o seqMD(): with.missing can now be NULL (new default), in which case the with.missing value of each domain is set as TRUE when the domain has missings and as FALSE otherwise. o seqMD(): new logical argument fill.with.miss, which offers the option to fill the shorter sequences with missings in case of non-matching lengths across domains. o seqplot() and all the seqxxplot() family functions: ylab can be a vector of labels by group level. o seqplot() and all the seqxxplot() family functions support arguments of legend among the ... list. o "[.stslist" raises a warning when row subsetting condition has NAs. Bug fixes o seqrf(): options sortv="from.start" and sortv="from.end" did not work as expected. o seqMD(): error when sequences had different lengths. o foreign c function wcorr called with character string naming while package calls R_forceSymbols. (Fix asked for by K. Hornik). Misc. o Statement "SystemRequirements: C++11" dropped from DESCRIPTION as requested by CRAN check o Using new CITATION commands. Changes in version 2.2-6 (2022-12-01) Changes in existing functions o seqplot() and all the seqxxplot() family functions: default value for the main argument is now "auto" and NULL removes all titles as it should. o seqplot() and all the seqxxplot() family functions: argument axes is deprecated and replaced by xaxis. Argument yaxis can now also be one of "all" or "left". o plot() methods for objects returned by seqdef, seqstatd, seqtab, seqmodst, seqmeant, and seqrf now display the ylab closer from the y-axis when yaxis=FALSE. o plot() method for object returned by seqrep now displays the ylab closer from the y-axis when stats=FALSE. Bug fixes o summary.dissrf(): five number statistics ignored weights (reported by Marcel Raab) o seqstatl(): non-integer state value were not recognized. o plot() methods for objects returned by seqdef, seqstatd, seqtab, seqmodst, seqmeant, seqrf, and seqrep ignored the cex.lab argument. o issues with prototypes in init.c o removed unused code with deprecated sprintf in eventdictionary.cpp Misc. o Replaced seqdistmc with seqMD in examples of dissdomassoc. Changes in version 2.2-5 (2022-08-30) New functions o dissrf() medoids of relative frequency (RF) groups o seqrf() medoid sequences of RF groups o plot.seqrf() plot method for medoid sequences of RF groups o seqrfplot() alias for seqplot(...,type="rf",...) o print and summary methods for dissrf and seqrf objects o seqfposend() position of end of spell in given state Changes in existing functions o seqplot() new value "rf" (RF plots) for argument type. o seqtab() result gains an attribute idxf with indexes of first found frequent sequences. o seqdistmc() renamed seqMD to better reflect that the function can return various outcomes related to multidomain (MD) sequences, not just distances based on the MCSA trick. Old name maintained as an alias for backward compatibility. o plot.stslist() now raises an explicit error for bad ytlab value. Bug fixes o plot.stslist() possible conflict between x names and arguments of order. o plot.stslist.rep() bad position of y-axis when !is.na(ylab) Misc. o Proper wtd.cor, wtd.mean, wtd.var, wtd.fivenum, and wtd.boxplot internal functions to avoid issues with dependence on packages weights, Hmisc, and ENmisc. (Code in TraMineR-weights.R and TraMineR-wtd-stats.R.) o Function TraMineR.checkupdates has been removed. Changes in version 2.2-4 (2022-06-09) New functions o seqdHplot() alias for seqplot(...,type="dH",...) o seqlength.align() sets lengths of sequences of multiple domains as the shortest length among the domains. o seqmaintokens() returns indexes of more frequent tokens. Changes in existing functions o plot.stslist.statd() new type "dH" that overlays entropy line on the chronogram. In addition, new arguments col, lwd, and ylim allow controlling aspect of entropy line. o seqplot() new type "dH". o seqformat(), seqdef(), seqdecomp(), seqconc(), seqstatl() now support tibble input data. o seqformat() accepts a tibble as pdata table. o seqformat() accepts a character string vector as input data. o seqdistmc(): option what="sm" becomes what="cost". Deprecated "sm" value maintained for backward compatibility. o plot.stslist.rep() gains two arguments seq.alt to specify the domain in which representatives are displayed and info to control whether coverage info should be displayed. Misc. o Suppressed dependence on cNORM because of license incompatibility. (dissdomassoc uses now a proper internal function in place of cNORM:::weighted.rank). Changes in version 2.2-3 (2022-01-19) New functions o summary.ddomassoc() summary method that organizes outcome of dissdomassoc in table form. Changes in existing functions o dissdomassoc() now returns also p-values of computed correlations. o plot.subseqelistchisq() (plot of outcome of seqecmpgroup) gains attribute with.legend. o plot.stslist.modst() new attribute info to control whether frequency of sequence of modal state should be displayed. o plot.ststlist.meant() now uses an internal function to draw error bars to avoid issues with dependence on Hmisc. o plot.ststlist.meant() new arguments bar.labels, cex.barlab, and offset.barlab to display and control bar labels. o seqmtplot() (seqplot(..,type="mt", ..)) adapted for handling bar labels with groups. See details in seqplot help page. o seqformat() with from="SPELL", provides info about number of sequences truncated, empty sequences because of spell occurring before birth year, and empty because of missing start time. A new attribute issues contains the indexes of sequences with issues. o seqdef() now prints, when applicable, the number of empty sequences and lists the first 9 empty sequences only. o seqdistmc() gains an argument ch.sep to control the separator symbol for building state names of the expanded alphabet. o seqdistmc() rows and columns of the returned distance matrix and the mc sequences are now labelled with rownames of the first channel. Rows and columns of the returned mc substitution cost matrix are labelled with the expanded alphabet. o seqdistmc() columns of the returned expanded sequence object now labelled with column names of longest domain. o seqdistmc() indel can now be "auto" (new default) to automatically set indel values. In addition, state dependent indels are now supported. o seqdistmc() with.missing can now be a vector to provide different values for each channel. o seqdistmc() now also supports "INDELS" and "INDELSLOG" values for the sm argument. o seqcost() removed "->" at end of row/column labels of matrix sm. Bug fixes o seqdiff() negative values in cmprange caused an error. o seqdiff() changed deprecated norm=TRUE into norm='auto' in default seqdist.args value. o seqecreate() NAs introduced by coercion with character id. Misc. o Dependence on boot and RColorBrewer replaced by importFrom of functions boot and brewer.pal. Changes in version 2.2-2 (2021-06-03) New functions o seqidegrad() degradation index (replaces seqprecorr() that becomes obsolete). Class seqprecorr now named seqidegrad and associated print method renamed accordingly. o seqibad() badness index. o seqinsecurity() insecurity index. o dissdomassoc() computes measures proposed in Piccarreta (SMR 2017) to assess the degree of association between domains. Changes in existing functions o seqdist() can now compute distances between two subsets of sequences. The subsets are defined by providing a list with two subsets of sequence indexes as refseq argument. o seqdist() dimnames of the objects returned by seqdist are now all set from the rownames of the provided sequence object. o seqdist() method="DHD" now supports sm="INDELS" and sm="INDELSLOG". o seqcost() time.varying=TRUE works with "INDELS" and "INDELSLOG". o seqdistmc() gains a what argument to choose what value will be returned: distances, costs, or combined state sequences. o seqintegration() renamed seqintegr() o seqindic() the possible indic list gains elements 'degrad' for degradation index, 'bad' for badness index, 'insec' for insecurity index, and the type 2 forms 'meand2', 'dustd2', 'turb2', and 'turb2n' taking non-visited states into account. In addition, indic accepts now also value 'ranked' that is equivalent to c('degrad','bad','prec','insec'). o seqindic() value 'inpos' of indic renamed 'integr', 'volat' now in the 'complexity' group. o seqindic() changes in order of indicators in the returned table. o seqformat() with from='SPELL' and process=TRUE now issues a warning message when the max of the end column exceeds limit. o seqlegend() gains an argument boxes to control how colors are displayed. In addition, now supports any argument of function legend and, e.g. x (or x and y) can be used instead of position. o seqstatf() gains the with.missing argument. o seqlogp() gains the with.missing argument. In addition, the overall state distribution can now be used as starting point by setting begin='global.freq'. Bug fixes o seqlogp() error for state sequences with missing values. Misc. o New imports from psych and cNORM (for dissdomassoc) Changes in version 2.2-1 (2020-10-24) New functions o seqivardur() computes the variance of spell durations for each individual sequence. Either the variance of the observed spells or by considering also the 0-time spent in non-visited states. The associated print method can print the mean, standard deviation, variance, and max variance. Changes in existing functions o seqST() gains an argument type to select the type of duration variance used. o seqindic() the possible indicator list gains elements 'recu' for recurrence index, 'nvolat' for normative volatility, 'meand' for mean spell duration, 'dustd' for standard deviation of the duration. The indic argument accepts now also values 'basic', 'diversity', 'complexity', and 'binary' that each selects a subset of indicators. o seqprecstart() the normalized stprec has now a minimum 0. o seqdist() the check of allowed number of unique sequences now depends on refseq and used thresholds are sqrt(.Machine$integer.max) when refseq==NULL, and .Machine$integer.max otherwise. In addition, a new argument permits to skip the test. Bug Fixes o seqdur() returned sometimes bad values for the duration of the last spell of sequences of unequal lengths when with.missing=TRUE. o seqdur() unexpected outcome for sequences with missing values when with.missing=FALSE. Now correctly ignores missing values. o seqdplot() and plot.stslist.statd() ignored the xlab argument. o seqconc(), seqdecomp(), seqformat(), and the print method for stslist objects produced in some circumstances output without the row names of the input data. o seqsubsn() error for sequences with missing values when with.missing=FALSE. Now correctly ignores missing values. Misc. o TraMineRextras added to the 'Suggests' list (to avoid NOTE on undeclared package in Rd xrefs.) Changes in version 2.2-0.1 (2020-04-29) Misc. o seqdef(): switched back from [grDevices] hcl.colors to [colorspace] qualitative_hcl to avoid dependence on R >=3.6 necessary for hcl.colors. Changes in version 2.2-0 (2020-04-22) Changes in existing functions o seqdist(), argument indel can now be "auto" (new default) in which case a suitable indel value is generated for the provided sm. o seqdist() now uses the rbind stslist method to add refseq to the set of sequences when it is a state sequence object. (Transparent to the user.) o seqdist() now gives a zero weight to the refseq when specified as a state sequence object. o seqdist() refseq including refseq as a state sequence object can be used with all methods (did not work with OMstran, CHI2, and EUCLID). o seqdist() vector indel now supported by OMspell and OMslen (in addition to OM and OMstran). o seqdist(), normalization now also possible for OMspell, OMslen, OMstran, OMloc, and TWED. o seqdef() now uses hcl.colors (grDevices) instead of qualitative_hcl (colorspace) to set default colors when n>13. (Transparent to the user.) Bug fixes o rbind.stslist() bad handling of missing states. o seqdist(), argument sm did not recognize values "INDELS" and "INDELSLOG". o seqdist() raised warnings when method='OMslen' because of a vector of conditions in an if test. o seqdist() ignored the weighted value when computing substitution costs with the sm method. o seqdist() for OMstran ignored the weighted value when computing probability-based indels (i.e. with transindel="prob"). o seqdist() TWED wrongly depended on the indel value. Now indel serves only in the improbable case of empty sequences. o seqdist() maxlength and gmean normalization generated negative distances in some circumstances. Fixed by setting the maximum length as max length x max indel. Misc. o Deleted unused OMVI2distance h and cpp files. Changes in version 2.0-15 (2020-03-18) New functions o seqintegration() index of integrative potential of C. Brzinsky-Fay. o seqivolatility() index of objective volatility of C. Brzinsky-Fay. o print.seqipos() print method for objects returned by seqipos(). o is.stslist() checks that the object is a proper stslist object. o rbind.stslist() rbind method for state sequence objects. Changes in existing functions o seqdef() now provides a default color palette (using colorspace) when number of states exceeds 12. o alphabet() gains an argument with.missing. o seqipos() gains an argument index to select between three types of indicators: share of positive states, volatility, or integrative potential for the positive state. o seqipos() returned object has an attribute sbinary with the derived binary sequences. o seqindic() possible values for argument indic include now the indicators of objective volatility and integrative potential both for the provided sequences and the positive-negative sequences derived from them. o seqdist(): OMloc, OMslen, OMspell, and OMstran now also apply to sequences of different lengths. o seqdist(): with.missing=TRUE now supported by all methods. o seqdist() raises a warning when there are empty sequences except for OMloc where an error is raised. o seqcost(): with.missing forced as FALSE (as in seqdist) when there are no non-void missings in the sequences. o seqprecorr(): new methods "FREQ+", "TRATE+", "TRATEDSS+", "RANK+" that adjust the returned penalty for the mean transition weight. o seqprecorr(), a same state value is assigned to equivalent states when counting transitions and computing transition probabilities (methods FREQ, TRATE, TRATEDSS). Bug fixes o Print methods for seqprec and seqprecorr objects did not work. o print.stslist() did not print ending missing values when format='SPS'. o print.stslist(), when format='SPS', additional parameters for controlling the format were ignored. o seqformat() did not account for the right argument when to='SPS'. o seqdist() with method=CHI2. Fixed issue with unexpected warnings when over an interval all sequences stay in the same state. o seqdist() raised an error for some methods when the unused argument indel was a vector. o seqdist(), argument sm: values 'CONSTANT' and 'TRATE' were only accepted for method='OM' and 'HAM'. Now can be used with all methods that require the sm argument. o seqplot() raised an error when deprecated tlim argument was used. Now a warning. o [] subsetting of stslist objects with negative column indexes produced unexpected results. Changes in version 2.0-14 (2020-01-13) Bug Fixes: o print.stslist.freq() wrongly used width argument. Changes in version 2.0-13 (2019-11-19) New functions o seqindic() returns a table with per sequence values of selected indicators. o seqipos() proportion of positive spells/states per sequence. o seqprecarity() precarity index (previously in TraMineRextras) o seqprecorr() correction factor for precarity index (previously in TraMineRextras) o seqprecstart() state precarity level for precarity index (previously in TraMineRextras) Changes in existing functions: o seqlength(), seqST(), and seqsubsn() gain a with.missing argument to control how missing values should be treated. Bug Fixes: o seqST() normalization did not account for non-void missing values when present. Misc.: o Fixed issue with \traminer in vignette. Changes in version 2.0-12 (2019-06-21) Changes in existing functions: o seqdef() now raises an error when argument alphabet contains duplicate elements. o alphabet() in its assign form now raises an error when the assigned vector contains duplicate elements. o seqdist() gains a new argument global.pdotj to control the marginal distribution to be used for the 'CHI2' distance. o seqdist(), 'CHI2' and 'EUCLID' distances are now, when norm='auto', normalized by the maximal distance, which for 'CHI2' depends on the marginal state distribution. o seqici(), seqient(), and seqST() gain a new argument silent to control whether messages about running operations should be displayed. o seqST(): suppression of useless messages when norm=TRUE. Misc.: o Suppressed unused argument weighted from internal OMstran function. o Help page for seqdist: description of the weighted argument adjusted to reflect that it applies only to the "CHI2" distance. o Updated links to Swiss Household Panel in actcal and biofam help pages. Changes in version 2.0-11.1 (2019-03-22) Bug Fixes: o eventseq.cpp: rchk message 'calling allocating function Rf_asChar with argument allocated using TMRNumberFormat'. Changes in version 2.0-11 (2019-03-18) Changes in existing functions: o seqdef(). Speed improvement suggested by Jouni Helske. Transparent for the user. o seqdist(). An error is raised when the number of unique sequences exceeds the maximal allowed. o plot.ststlist.statd(). Now checks the type argument and returns the values plotted. Bug Fixes: o seqtab(), seqxtract(), checkcost(), SPELL_to_STS(). Issues with length > 1 in coercion to logical. o Warning about potential stack imbalanced PROTECT in relation with TMRNumberFormat in the C++ code (eventseq.cpp). Changes in version 2.0-10 (2018-11-18) Bug Fixes: o seqdist(): when refseq was passed as a state sequence object wrong results were sometimes returned. o seqdist(): CHI2 and EUCLID distances were computed using counts instead of proportions. o seqdist(): CHI2 and EUCLID bad behavior in presence of missings. o Vignette: Fixed issue with updated fancyvrb.sty. Misc.: o Vignette: Error in formula for complexity index. Also, now DOI instead of link to JSS article. Changes in version 2.0-9 (2018-08-20) Changes in existing functions: o seqplot() now supports the ncol argument for controlling the number of columns in the color legend. o seqdef(): new argument tick.last to set the tick.last attribute of the state sequence object. Default is tick.last = FALSE to preserve the previous behavior. o plot.stslist(), plot.stslist.freq(), plot.stslist.statd(), plot.stslist.modst(), plot.stslist.rep() (i.e. also seqplot with type "i", "I", "f", "d", "Ht", "ms", or "r"), and plot.seqdiff(): new argument tick.last that when set as TRUE allows to enforce a tick mark at the last position on the time x-axis. Has no effect when the last position is 1 + a multiple of xtstep. Default is to use the tick.last attribute of the state sequence object. o seqformat(): • For from = "SPELL" and process = FALSE, pdata = "auto" is now equivalent to NULL instead of raising an error. Also, using argument pvar with pdata = NULL now raises a warning instead of an error and pvar is simply ignored. • For from = "SPELL" an error is raised when columns referred to by begin and end are of class "Date". Integer values are expected. • When from = "SPELL" or to = "SPELL", an error is raised when the birth year column of pdata is of class "Date". Integer values are expected. o seqplot(): for type = "r" (seqrplot), an error is raised when a group has less than two cases. Bug fixes: o seqformat(): An unneeded warning was raised when data was a matrix with a single string element. o seqdef(): Bad handling of missing argument when informat = "SPS" or "SPELL". Changes in version 2.0-8 (2018-01-27) Changes in existing functions: o seqcost(): argument miss.cost.fixed is now NULL by default and will be set as FALSE when method = "INDELS" or "INDELSLOG", and as TRUE otherwise. o seqpcplot(): new logical weighted argument to control whether weights should be used or not. Bug fixes: o seqrplot() and seqplot(..., type="r", ...): the method and other related arguments for computing the diss matrix when the later was not provided was not recognized. o seqplot(): Fixed some unused argument issues. Misc: o Vignette: Suppressed the loading of two unused LaTeX packages (subfigure and afterpage) that prevented the vignette to be built under OSX. o Declaring use of C++11 for log1p: SystemRequirements: C++11 declaration in DESCRIPTION and math.h header in NMSdistance.cpp o Internal function checkargs() renamed as TraMineR.check.depr.args() and made public for use in TraMineRextras. Changes in version 2.0-7 (2017-08-16) Changes in existing functions: o alphabet(): the get form now also applies to event sequences. In addition, an error is now raised when the argument is not a state sequence object, an event sequence object, or a probabilistic suffix tree (see the PST package for the latter). o seqdecomp(): the miss argument can now also be a vector, e.g. miss = c("*", "%") o seqformat() has a new right argument to be used with to = 'SPELL'. The default right = 'DEL' suppresses the end spells of missing values. Set right = NA to keep the end spells of missing values. o seqdef() now raises an error message when void is not a character different from left, gaps, and right. o seqtrate() gains a new argument count. When count = TRUE, the function returns counts of transitions instead of transition probabilities. Bug fixes o seqpcplot(): Due to a change in the R tapply function, option ltype="non-embeddable" did no longer work. o seqefsub() with non-null str.subseq argument: multiple partial matches between events in str.subseq and the alphabet of events of the eseq event sequence object crashed the R session. Fixed by a change in the internal seqecreatesub function. o seqformat(): to="TSE" and to="SPELL" produced errors or unexpected results in presence of missing and/or void states. Now, when to = "SPELL", the missing and void codes are both converted to NA before conversion while they are kept as is when to = "TSE". o seqetm() produced an error in presence of void elements. o An error occurred in the internal implicativestat function when a same condition subsequence was present in all subsequences. Misc: o Documentation of seqformat() and seqecreate(): added examples of the handling of missings in conversion into TSE and SPELL format. Changes in version 2.0-6 (2017-06-17) Changes in existing functions: o seqformat(): • Redesigned version of the function with a new extensible, robust and documented implementation. • Rewritten documentation with argument types, default values, scopes and detailed explanations. • Added and generalized conversion to "SPELL" from TraMineRextras; added a with.missing argument specifically for this conversion. • Added the possibility to pass directly the unique individual IDs (row names) of the input sequences with id when converting to "TSE". • Clarified the meaning of the id argument and changed its position in the list of arguments to reflect this. • Changed the default value of the id, begin, end, and status arguments (now "SPELL" oriented). • Renamed compressed argument as compress to avoid confusion (here it applies to the output, not to input data). • Renamed nr argument as missing to avoid confusion (here it specifies the code to consider as missing values in input data, which is not the TraMineR internal code for missing values in state sequence objects). • Adapted function calls to match the renamed argument names (compressed, nr) and the new input type checking (ie. single strings are deprecated). • See the updated documentation of seqformat() for details. o SPS_to_STS(): renamed nr argument as missing to match seqformat() argument names renaming. Bug fixes: o seqformat(): • From "SPELL" to "TSE": output IDs were incorrect. • From "SPELL" to "STS": states not appearing in the data were dropped from the output column levels. Misc: o Added new internal helper functions: • msg.warn0(): same as the existing msg.warn() but without white space insertion. • is.positive.integers(): check if an object is a vector of positive integers. • is.a.character(): check if an object is a (unique) character. • is.a.string(): check if an object is a string. • is.strings(): check if an object is a vector of strings. • is.index(): check if an object is a positive integer or a string. • is.indexes(): check if an object is a vector of positive integers or strings. • checkindex(): check if an object is a valid data frame or matrix index; otherwise, an error is raised and an information message is displayed. • checkindexes(): check if an object is a vector of valid data frame or matrix indexes; otherwise, an error is raised and an information message is displayed. o Grouped internal is.xxx helper functions into a single TraMineR-is_helpers.R file. o Generalized msg.warn() / msg.warn0() and msg() / msg0() code. o Internal C/C++ function tmrWeightedInertiaDist() made public as the R function TraMineRInternalWeightedInertiaDist(). (Used by package Weightedcluster) Changes in version 2.0-5 (2017-05-15) Note: o This is a major update of the CRAN version of TraMineR. o Check also changes in versions 1.9-14, 2.0-0, 2.0-1, 2.0-2, 2.0-3, and 2.0-4 that have not been released on the CRAN. Bug fixes: o seqtrate(): now accepts a sequence object (seqdata argument) containing only one sequence. o seqdist(): now accepts a reference sequence object (refseq argument) containing missing values while the main sequence object (seqdata argument) doesn't. Misc: o Replaced default deprecated values of norm in seqdistmc() and seqtree(). o Fixed issues with examples in documentation page of seqtree(). Changes in version 2.0-4 Changes in existing functions: o Renamed several argument names to increase consistency within TraMineR and between TraMineR and R. The aim is also to have a common naming convention within TraMineR. A new internal function (checkargs())is used to guarantee backward compatibility. If the old argument name is used instead of the new one, a warning message with an explanation is displayed and the execution continues. If the new and old argument names are used together, an error message is displayed and the execution stops. The following functions have at least one renamed argument: dissrep(), disstree(), disstree2dot(), disstree2dotp(), disstreedisplay(), is.eseq(), is.seqelist(), seqdiff(), seqeconstraint(), seqecontain(), seqecreate(), seqefsub(), seqeid(), seqelength(), seqelength<-, seqetm(), seqeweight(), seqeweight<-, seqlegend(), seqpcplot(), seqplot(), seqrep(), seqtab(), seqtrate(), seqtree(), seqtree2dot(), seqtreedisplay(), seqeisweighted(), plot.seqalign(), plot.seqdiff(), plot.stslist(), plot.stslist.freq(), plot.stslist.meant(), plot.stslist.modst(), plot.stslist.rep(), plot.stslist.statd(), plot.subseqelistchisq(). See the help page of each of these functions for the mapping between old and new argument names. o Renamed function: is.seqe() was renamed as is.eseq(). Misc: o Fixed an issue with an example in the documentation page of seqpcplot(). o Fixed equation typing errors in seqrep() documentation. Changes in version 2.0-3 Misc: o In src/tmrsequence.cpp from TraMineR 1.8-13: • Fixed two memory errors detected by Valgrind. • Fixed a PROTECT error. o Fixed issues with examples in documentation pages of dissmfacw, disstree, seqtree, and plot.stslist.meant. Changes in version 2.0-2 Misc: o Changed character encoding from latin1 (ISO-8859-1) to UTF-8. o Normalized line endings: LF. Changes in version 2.0-1 Misc: o Removed the following unused functions: vidx(), seqmatsaltt(), seqmathenikoff(). o Removed the functions deprecated in TraMineR 1.x: seqesetlength(), dissreg(), dissmfac(). Changes in version 2.0-0 New function: o seqcost(): Evolution of seqsubm() that offers different ways (CONSTANT, TRATE, INDELS, INDELSLOG, FUTURE, FEATURES) to determine indel and substitution costs (see the documentation of seqcost() for details). Unlike seqsubm(), seqcost() returns both the indel and the substitution costs. Changes in existing functions: o seqdist(): • New major version with many new features and a new extensible, robust and documented implementation (R code). • New methods: localized OM (OMloc), spell length sensitive OM (OMslen), OM of spells (OMspell), OM of sequences of transitions (OMstran), Time Warp Edit Distance (TWED), Number of Matching Subsequences (NMS), Number of Matching Subsequences weighted by the Minimum Shared Time (NMSMST), Subsequence Vectorial Representation (SVRspell), Euclidean distance (EUCLID), Chi-squared distance (CHI2). • New arguments: kweights, tpow, expcost, context, link, h, nu, transindel, otto, previous, add.column, breaks, step, overlap, weighted, prox. • sm: value "CONSTANT" has been removed for DHD as it doesn't make sense and the values "INDELS" and "INDELSLOG" have been added (see seqcost() documentation). • norm: value TRUE is replaced by "auto" and FALSE by "none". • See the updated documentation of seqdist() for details. o seqsubm(): This is now an alias for seqcost(...)$sm. Changes in version 1.8-14 Misc: o Registration of native routines for R 3.4.x. See . Changes in version 1.8-13 (2016-10-06) Misc: o Changes in C-code for the seqefsub function: replaced call to function round by a call to fround to comply with forthcoming changes in R 3.4.0 (request of Brian D. Ripley). The change is transparent for the user. Changes in version 1.8-12 (2016-06-24) Changes in existing functions: o seqST(): new argument norm to ask for a normalized turbulence index. o seqformat(): The transformation now stops with an error message when the columns referenced with the begin and end argument contain a non integer value. Bug fixes: o plot.stslist(): an unnecessary warning occurred when a vector of labels was passed as ytlab argument. o seqdef(): now accepts to create a state sequence object with an alphabet that has only one element. Fixed an error that occurred when there was only one state New data examples: o bfspell: a small data set with 20 sequences in SPELL format. Misc: o updated seqformat help page: now includes an example of a transformation from SPELL to STS. o fixed bad use of extern "C" {} in TraMineR.h (done by B. Ripley, CRAN version 1.8-11.1) Changes in version 1.8-11 (2015-11-25) Changes in existing functions: o seqmeant(): New serr argument. When serr=TRUE, seqmeant computes the variance and standard deviation of the total times spent in the different states, and the standard error of the mean total times. o seqmtplot(): When serr=TRUE, error bars are displayed in the mean time plot. o seqdist(): • New error message when sm=NA with method "OM". • New error message when refseq is a state sequence object with an alphabet assigned to it different from that of seqdata. Misc: o updated disstreedisplay help page (tree argument). o updated seqdist help page (refseq argument and example). o updated CITATION file (new ref and fixed a doi argument). Changes in version 1.8-10 (2015-07-14) Misc: o Updated help pages: seqeconstraint, seqtree, distree2dot. o Added required basic packages to the import statements to comply with R v3.3 requirements. o One additional exported alias to a TraMineR internal function: TraMineRInternalSeqgbar. Changes in version 1.8-9 (2015-01-27) New function: o seqpcfilter(): convenience function to define the coloring filter options to be passed as filter argument to seqpcplot(). Changes in existing functions: o seqpm(): New sep argument to allow searching for string patterns when states are not labelled with single characters. o seqpcplot(): • New argument seed to control the jittering. • The filter argument can now simply be a scalar, in which case the minfreq filter is applied with this numeric value as threshold. See also the new function seqpcfilter(). • New argument missing to control whether and how to display missing values. Bug fixes: o seqformat(): fixed error occurring when converting from STS to TSE with a tevent matrix containing empty strings (i.e. "") o dissmfacw(): reported F values now obtained by dividing the within discrepancy in the denominator by (n-m), where n is the sample size and m the total number of predictors (contrasts for categorical factors). Up to here (n-m-1) was mistakenly used (Reported by Vicente Ponsoda.) Misc: o Two additional exported aliases to TraMineR internal functions: TraMineRInternalSeqeage and TraMineRInternalLegend. Changes in version 1.8-8 (2014-01-14) Bug fixes: o seqecreate(): an error is thrown when events are not grouped by id in inputted TSE data. (Reported by Nicolas Jay). This requirement is now specified in seqecreate help page. Misc: o exported alias functions allowing other packages to access TraMineR internal functions (see ?TraMineRInternalLayout). Changes in version 1.8-7 (2013-12-19) Changes in existing functions: o seqpcplot(): Suppressed unnecessary output argument. The seqpcplot object is automatically retrieved when using the assignment operator, e.g., p <- seqepcplot(...). Bug fixes: o seqformat(): When converting from STS to TSE, an error was raised if the tevent matrix had empty strings (i.e. ""). Now, this is considered as no event. o seqpcplot(): Fixed error that appeared at the use of "_end" events. o seqpcplot(): An error occurred when plotting a state sequence object (of class stslist) with a numeric cnames attribute. Misc: o Required packages RColorBrewer and boot now listed as "imports" in DESCRIPTION and using import in NAMESPACE. Changes in version 1.8-6 (2013-08-26) Changes in existing functions: o seqformat(): new nr argument to specify the missing state symbol in SPS input. o disstreeleaf(): new logical label argument to specify whether the leaf membership should be labelled with the classification rules. Bug fixes: o seqtreedisplay() and disstreedisplay(): GraphViz installer no longer adds GraphViz to the PATH environment variable. Therefore the two functions have been adapted to search for GraphViz. In case GraphViz would not be found, you can specify the GraphViz installation directory with the new gvpath argument. o disstree() and seqtree(): removed the warning when R equals 0 or 1 (no permutations). o seqformat(): fixed a problem with missing states when converting from SPS to STS (see Changes in function above.) o seqpcplot(): fixed issues with which argument of plot.seqpcplot. o seqpcplot(): fixed issues with arguments xlab and title. o seqpcplot(): replaced a warning message by an error message at failures in finding plot positions for sequences. The error message advices to modify the (currently hidden) maxit argument. Additionally, automatically generated subtitles are now hidden when the argument title is used. o as.character.seqelist(), print.seqelist(): fixed an issue with time display in event sequences which was in scientific notation for numbers with more than 2 digits. The function now uses the R format function and thus accounts for global formatting options such as options(digits=) and/or options(scipen=). o seqtrate(): fixed error with sequence objects having only two columns. New functionalities: o disstree2dot() and disstree2dotp() gain a new argument called title.outer. If title.outer=TRUE, the title is printed in the outer margins. Changes in version 1.8-5 (2012-12-06) Bug fixes: o seqefsub(): reported support did not properly account for weights. o seqtreedisplay(): corrected a bug when using representative sequences and a dist object was passed to the dist.matrix argument (reported by Emanuela Struffolino). o seqLLCS() and seqLLCP(): added a check on the argument. Both sequences should belong to state sequence objects with a common alphabet. o seqpcplot(): small change in default lower ylim. Help pages: o help pages updated with author and keyword fields. Changes in version 1.8-4 (2012-11-17) Bug fixes: o seqrep(), dissrep(), seqrplot(): wrong (unweighted) "na" values were returned; also quality measures "MD" (mean distance to representative) and "V" (discrepancy) were not computed properly when more than one representative selected (since version 1.8-2). User invisible changes: o Added an internal function to fix an issue with an internal C level function when called from other packages. Changes in version 1.8-3 (2012-10-18) Information pages: o Updated online help pages. o Updated list of references returned by citation("TraMineR"). New functionalities: o seqpcplot(): parallel coordinate plot for sequence data. Changes in existing functions: o seqdss(): adding long state labels to returned sequence object. o seqplot(): new option type = "pc". o seqplot(), seqdplot(), seqiplot(), seqfplot(), seqmsplot(), seqrplot(): if density and/or angle are used to produce shading lines instead of solid colors, the legend is plotted using the same parameters and thus corresponds to the colors/shades used in the plot. o seqplot(): if group argument is a factor, the plots are now ordered the same way as the factor levels. o seqplot(), plot.stslist(): if sortv is a factor, the sequences are now sorted according to the order of the factor levels. o seqmodst() and plot.stslist.modst(): changed name of attribute occurences of object returned by seqmodst to occurrences. Made resulting changes in plot.stslsit.modst. Bug fixes: o seqdef(): When selecting subsets of sequence objects using rownames instead of row indexes, the corresponding weights were not selected. Fixed by setting (row)names of weight vector as the sequence rownames. (Alexis Gabadinho) Changes in version 1.8-2 (2012-06-04) Vignettes: o Slightly modified JSS article vol. 40(4) added as a vignette on state sequence analysis. Misc: o added ex2 data sets to test and illustrate the handling of weights, type help(ex2) for details. New functionalities: o New faster interface between C code and R. o seqalign() and associated print and plot methods to see computation details about the alignment of two state sequences. Changes in existing functions: o seqtree(), disstree(): speed improvements. o seqtm(): gives a warning when state names or state labels contain a comma. o seqdef(): changed the display of alphabet, state labels and long labels when creating a state sequence object. o seqistatd() and seqmeant(): added prop argument to calculate proportions of time spent in each state instead of absolute values. o seqplot() and aliases: group now also accepts as argument a list of variables/vectors and produces a plot for each combination of the values of the variables in the list. o dissrep(), seqrep(), seqrplot(): now accounts for weights when present. o seqtrate(), seqsubm(): added two arguments: • lag: compute transition rates from t to t+lag, set to one by default. • with.missing: If TRUE, compute transition rates to and from missing values. o seqtreedisplay(): now overwrites previous file if filename is not NULL. Tree quality measures displayed with R code. o checktriangleineq(): internal function to check triangle inequality is now in C, which allows checking much bigger distance matrices. o seqIplot(), seqiplot() and seqplot() with type "I" or "i": the sortv argument now also accepts a sorting method, namely one of "from.start" or "from.end". See the help page ?plot.stslist for explanation. o seqeconstraint() and other seqe... functions for event sequences: support of subsequences can now be determined by means of any of Joshi's 5 counting methods (see the ref manual page). The method should be specified with seqeconstraint(). o seqeapplaysub(): when method=NULL is specified (now the default), the count method assigned to the event sequence object is used. With method="count" CDIST_O (number of distinct occurrences) is used as previously. o seqrep(): attribute Index of the returned object is now a vector instead of an object of class dissrep. Bug fixes: o seqtreedisplay(): was changing current directory when an error occurred in the plotting function. o dissrep(), seqrep(): error when nrep cannot be reached (reported by M. Studer) o seqefsub(): when using strsubseq argument, countMethod of seqeconstraint was not taken into account (Reported by Reto Bürgin). o seqeconstraint(): added consistency checks to avoid misuses (Reported by Reto Bürgin). o print.seqelist() and as.character.seqelist(): generated segfault when converting long event sequences to character (Reported by Pierre Molinier). o seqsubm(): Very small rounding errors (1e-16) were sometimes leading to non symmetric substitution cost matrix (Reported by Alexandre Pollien). Changes in version 1.8-1 (2011-04-05) Misc: o updated references in the citation file and manual pages to point to the newly published article in the _Journal of Statistical Software_ o other references update in the manual pages. Changes in version 1.8 (2011-03-17) New functionalities: o seqtreedisplay(): drawing a sequence regression tree. o seqtree(): creating a sequence regression tree from a dissimilarity matrix. o seqrecode(): recoding state sequences objects (i.e., merging states). o weights are now supported by all dissimilarity analysis functions. o weights can be assigned to event sequence objects and are supported by all related functions. o seqdef(): xtstep option added to set step between displayed tick-marks and labels on the x-axis of state sequence plots. o seqplot(): xtstep option added to state sequence plots. Bug fixes: o seqformat(): fixed problems with fillblanks argument when converting from SPELL to STS. o seqdist() and seqdistmc(): method="HAM" did not account for the provided substitution cost matrix; it used 1 for all substitution costs (Reported by Florian Hertel). o seqdist(): fixed a (possible) memory leak. o seqdss(), seqdur(): fixed bad handling of missing values in several cases: • sequences finishing with missing values, • sequences made of only one distinct state and missing values. o seqiplot(), seqIplot(), seqfplot(): changed the automatic setting of the x-axis length, to ensure identical lengths of the x-axis when the maximal sequence length differs between groups (reported by M. Studer). o seqplot() and aliases: fixed error with xaxis argument. o seqtransn(): the returned normalized number of transitions for sequences of length 1 was NaN (value of transn.norm=0/seqlength-1). Now set to 0. o seqici(): returns now correctly 0 instead of NaN for sequences of length 1. Changes in existing functions: o seqient(): new option base for choosing the base of the logarithm used to compute the entropy. o seqdist(): enhanced check of substitution cost matrix. • The function can now be cleanly interrupted by the user. • Timing information now uses the processor time (instead of the elapsed time). o seqformat() when converting from "SPELL": • new error message when a start time is lower than 1 and/or an end time is smaller than the start time. • warning message when start time of episode 1 is missing (sequence creation is skipped) • warning message when start/end time of an episode is missing (episode is skipped and filled with NA's) o disstree() and dissassoc() have been entirely redesigned; objects created with the old function are no longer supported. o seqdss() and seqdur(): the number of columns of the returned object is now set to the maximum DSS length rather than to the length of the original state sequence object. Misc: o ex1 example data set: contains now an additional sequence 's7' with only missing values. Changes in version 1.6-2 (2010-10-23) Bug fixes: o seqdef(): now checks whether all states encountered in the input data are present in an optional user provided alphabet (state argument) o seqefsub(): The support of a subsequence with a total support of 1 was set to 0 (hence, this only applies if the minimum support is 1.) This is now corrected (Reported by Anna Hera). o Corrected compilation problems under SOLARIS (Reported by Prof Brian Ripley). o seqformat(): when converting from SPELL to STS, the fillblank argument was not used. Changes in version 1.6-1 (2010-08-17) New functionalities: o Added a startup message when loading the TraMineR library. Changes in existing functions: o seqtab() and seqfplot(): tlim argument now allows to return any selected frequent sequences, in the same way as the tlim argument used in plot.stslist() and seqiplot() (Requested by G. Ritschard). For example, tlim=3:6 returns the third, fourth, fifth and sixth most frequent sequences in the set. Default for tlim is now 1:10 instead of 10. o seqsubsn(): added detection of missing state in the sequences and computation of number of subsequences by adding missing state to the alphabet. o seqST(): added detection of missing state in the sequences and computation of turbulence by adding missing state to the alphabet (Requested by G. Ritschard). o seqrplot now accepts ‘half’ matrices (dist objects) as produced by seqdist with the full.matrix=FALSE option (Requested by L. Lesnard). o seqiplot() and plot.stslist(): new ytlab option allowing to display sequence labels on the Y-axis in sequence index plots (if set to "id", the sequence ids are displayed). An additional ylas option sets the orientation of the labels (Requested by Andrew ?? and P. Jeuniaux). o seqsubm(): • When method="TRATE", the substitution costs are now based on the value of cval: SC(i,j) = cval -P(i,j) - P(j,i) where P(i,j) is the transition rate from state i to j. • added a new transition argument to use only transition from "previous" or "next" state instead of the default "both" when time.varying = TRUE. • Now, by default cval equals 2, unless transition is set to both and time.varying is TRUE in which case cval equals 4. o plot.stslist.meant(), seqmtplot(), plot.stslist.freq(), seqfplot(), plot.stslist.modst(), seqmsplot(): added display of weighted n instead of n in axis label if weighted=TRUE. o seqdplot(): disabled plot of a legend for missing state if with.missing=FALSE (Requested by M. Studer and G. Ritschard). o seqplot(), plot.stslist(), plot.stslist.statd(), plot.stslist.modst(), plot.stslist.freq(), plot.stslist.meant(): when weighted=TRUE, weighted n displayed in the axis label rounded to 2 digits (Requested by M. Studer). Bug fixes: o plot.stslist.modst(), seqmsplot(): fixed bad display of missing states if with.missing=TRUE. o seqmeant(): added color for missing state to color palette when using with.missing=TRUE. o dissrep(), seqrep(), seqrplot(): fixed bad coverage statistics when tsim set to other than default value of 0.10 (Reported by G. Ritschard). o seqdist(): Bad handling of missing values in DHD distance (wrong default substitution costs with missing values, set to one instead of four). o seqdist(): Fixed an error in seqdist when using refseq with missing values (Reported by an anonymous user). Changes in version 1.6 (2010-04-02) New functionalities: o seqIplot() and seqplot(..., type="I"): sequence index plot displaying all sequences with no space (space=0) and no border (border=NA) by default. o stlab(): retrieving or setting the long state labels of a sequence object. o seqici(): computes the complexity index, a composite measure of sequence complexity. o seqtransn(): computes the number of transitions in a sequence. Bug fixes: o seqrplot() and plot.stslist.rep(): missing states are now correctly plotted (reported by G. Ritschard). o dissrep() (called by seqrplot() and plot.stslist.rep()): when using coverage threshold, does no longer select one too many representatives. o seqdplot() / plot.stslist.statd(): fixed bad coloring of missing states (reported by M. Studer). o seqstatd() and print.stslist.statd(): fixed error when printing seqstatd output and length of the longest short state label was >2. (reported by G. Ritschard). o seqdss(): (with default with.missing=FALSE value) DSS with identical successive states resulted when there were missing values between two identical states. For example, before: DSS of "A-A-*-A-*-A" was "A-A-A" and now "A". Changes in existing functions: o summary.stslist(): added information in the output of the summary method for state sequence objects. o seqdist(), seqdistmc(), seqdss(), seqdur(), seqient(), seqistatd(), seqmpos(), seqnum(), seqsubm(): with.miss argument replaced by with.missing (obsolete with.miss argument still works for backward compatibility) o seqmeant(): added with.missing argument to account for missing states. o seqdef(): • new warning when one or several sequences contain only missing values. • when no weights are provided: • weights attribute of the returned sequence object is now set to NULL instead to a vector of 1's; • the "[>] sum of weights" message is suppressed; • new Version attribute with the number of the TraMineR version used for creating the sequence object; • message "[>] missing values in input file" changed to "[>] found missing values ('...') in sequence data" and displayed only if missing values are found in the input data. o seqIplot(), seqiplot(), seqplot(..., type="I"), seqplot(..., type="i") and plot.stslist(): new weighted argument. If set as TRUE sequence bar widths are set proportional to weights. o seqiplot() and plot.stslist(): when the sequence object contains less than 10 sequences and tlim=NULL, only the actual sequences are plotted without additional ‘void sequences’. o seqmodst(): added weighted and with.missing arguments. o seqtab() and seqstatd(): attribute nbseq of the returned object is now the sum of weights (if weighted=TRUE and the sequence object has weights) instead of the number of sequences. o seqfplot() / plot.stslist.freq() and seqdplot() / plot.stslist.statd(): when weights are used, i.e. when the weighted=TRUE argument is passed and the sequence object has weights, • the ‘n=...’ in the y axis legend now gives the sum of weights instead of the number of sequences; • ‘weighted’ is specified in the y axis legend; o seqfplot() and plot.stslist.freq(): more precise positioning of the 0 of the y axis; o seqrplot() and plot.stslist.rep(): • new stats option. If set to FALSE, statistics are not plotted; • label of the yaxis changed. o dissrep(): name of the main argument changed from dist.matrix to diss as in other diss... functions. Changes in version 1.4-1 (2009-11-02) Bug fixes: o seqecreate(): Problems with handling simultaneous events when creating event sequences with data not previously sorted on id, timestamp and event. o seqrep() with "density" criterion: neighborhood diameter is now correctly set to trep*dmax instead of trep. New functionalities: o dissrep(): extracts a set of representative objects using a dissimilarity matrix. This function is used by seqrep. Changes in existing functions: o seqrep(): • much faster extraction of the representative set; • default criterion is now "density" instead of "frequency"; • trep now sets a coverage threshold for the representative set rather than a size threshold for the candidate list; • in the output object, name of the attribute containing statistics for the representative set changed from Quality to Statistics and that of the attribute containing the overall quality measure changed from rindex to Quality. o seqplot(): now checks that the length of the vector given as group argument matches the number of sequences. o plot.stslist(): now checks that the length of the vector given as sortv argument matches the number of sequences. o seqformat(): dramatic speed improvement in conversion from SPELL data. Changes in version 1.4 (2009-08-06) New functionalities: o TraMineR.checkupdates(): check for TraMineR updates. o seqdistmc(): computes multichannel distances. o seqmeant(): computes mean duration in each state. o seqmodst(): returns the sequence of modal states. o seqmsplot(): for plotting the sequence of modal states. This function is a shortcut for seqplot with type="ms", see below. o seqrep(): extracts a set of representative sequences. o seqrplot(): for producing representative sequence plots. This function is a shortcut for seqplot with type="r", see below. o seqHtplot(): for producing Entropy Index plots. This function is a shortcut for seqplot with type="Ht", see below. o seqlogp(): Computing logarithm of sequence probabilities. o seqdef(): new weights= option for providing a vector of weights. o seqstatd(), seqtrate(), seqlogp() and seqtab(): new option weighted=TRUE for using the weights when computing the statistics. o seqtrate() and seqsubm(): new time.varying argument for computing position dependant transition rates or costs. o seqdist(): two additional methods are now available for computing distances, namely "HAM" (Hamming distance) and "DHD" (Dynamic Hamming Distance). o Output produced by seqstatd(), seqtab(), seqmeant(), seqmodst(), and seqrep() can now be plotted with their plot() dedicated methods (see new classes and methods below). Important changes: o seqplot(): is now the generic function for plotting state sequence objects with type argument. Available types are "d" for state distribution plots, "f" for sequence frequency plots, "Ht" for entropy index plots, "i" for sequence index plots, "ms" for modal state sequence plots, "mt" for meant time plots, "r" for representative plots. This function replaces the previous generic plot.stslist() function. o plot.stslist(): now produces only a sequence index plot (see new classes and methods below). Changes in existing functions: o seqfplot(): • new yaxis option: with yaxis="cum" (default) cumulated percentages are displayed, while with yaxis="pct" individual sequence percentages are shown. • pbarw=TRUE is now the default for the pbarw argument. o seqtab(): the format argument that specifies the format of the sequences displayed as rownames is now set by default to the short SPS format, e.g. TR/9-EM/63. o seqiplot(): sequence indexes are now displayed by default on the y axis. This can be disabled with yaxis=FALSE. Fixed minor bugs in seqformat(): o changes concern mainly the from="SPELL" and from="SPS" options. New classes and methods: o new class stslist.statd for objects produced by the seqstatd() function and methods for printing and plotting such objects. o new class stslist.freq for objects produced by seqtab() function and methods for printing and plotting such objects. o new class stslist.meant for objects produced by seqmeant() function and methods for printing and plotting such objects. o new class stslist.modst for objects produced by seqmodst() function and methods for printing and plotting such objects. Changes in version 1.2-1 (2009-05-13) Changes in function arguments: o seqdef(): new id argument for setting the rownames of the sequence object. o disscenter(): new medoid.index argument to get the indexes of all medoids (rather than only the first one). Minor bugs fixed: o Plotting missing states with seqiplot() and seqfplot() functions. o Sum of transition rates with sequences of different lengths not equal to 1. Changes in version 1.2 (2009-04-15) Changes regarding plotting functions: o New generic function plot.stlist() with option type= for plotting state sequence objects of class ststlist created by the seqdef() function. Old functions seqdplot(), seqfplot(), seqiplot(), seqmtplot() work as in the previous version but by calling plot.stslist with the appropriate type= option (types are 'd', 'f', 'i' and 'mt'). However, the order of the functions' arguments may have changed and this may cause problems if the names of the arguments were not explicitly specified in your scripts (which is inadvisable anyway). Changes in the dissimilarity and discrepancy analysis diss module: o dissreg() is renamed to dissmfac() for multi-factor dissimilarity analysis. o disstree(): great speed and memory improvements. Speed and memory improvements: o seqformat(): conversion to TSE format is now much faster. o seqdur() o seqST() Changes in the computation of distances between sequences: o seqdist() now checks if substitution costs respect the triangle inequality. When this is the case it ensures that the resulting dissimilarity matrix also respects the triangle inequality. o New options for selecting the distance normalization method. o New reversed LCP, i.e. longest common suffix method. (method="RLCP") Various changes: o CITATION file added. o seqST() caused an error when run with more than 12 states: bug fixed. o Fixed other minor bugs. Changes in version 1.1 (2009-01-16) New example data o mvad example data set added Name changes of functions o seqLLCP() instead of old seqLCP() o seqLLCS() instead of old seqLCS() New module o dissassoc(): Computes association with a factor; o dissreg(): Regression analysis of a dissimilarity matrix; o disstree(): Tree analysis of a dissimilarity matrix; o dissvar(): Computes a pseudo-variance from a dissimilarity matrix. Changes in graphic functions o New group option allowing to draw several plots for the levels of a factor within a single command; o TraMineR now uses layout for controlling the position of the plots and the legend in the graphic area. This is not compatible with par(mfrow=...). To use the standard par(mfrow=...) method, one must set the use.layout=FALSE option in the plot functions; o seqmtplot(): new function that plots the mean time spent in each state; o Option withborder=FALSE is now obsolete and replaced by the standard border=NA option. Changes in event sequence (seqe) module: o New plot for exhibiting discriminant subsequences (seqecmpgroup). o Overall syntax have been reviewed and is now much simpler. o seqefsub now allows to search for user specified subsequences (seqefsub). o Event subsequence lists now have specific plot and print method (seqefsub, seqecmpgroup) o seqecreate now accepts state sequences and performs automatic conversion (seqecreate) o Time constraints are now implemented separately and are stored with the results (seqeconstraint) Changes in the seqformat() function: o New options for importing SPELL formatted data. o The STS internal and the output in STS, SPS or DSS formats are now by default in extended format (a matrix with one state per column) instead of compressed format (a character string). Use the compressed=TRUE option to get an output in the compressed format (sequences as character strings). o "SPS1" and "SPS2" formats are now replaced by the generic "SPS" format with options SPS.in and SPS.out for defining the separator and surrounding characters used for specifying the state/duration couples. Other new functions: o seqgen(): generates a random sequence.