Changes in version 1.0.7.9000 - README: complete title, list of the features (methods, reliability, rouenRain), links to the website and the vignettes, quickstart with summary() and reliability(), references with DOI. - The website (GitLab Pages) is only published from the branch master. Changes in version 1.0.7 New methods - print() methods for the specified and fitted models (classes smm, smmfit, mm, mmfit): state space, initial distribution, transition matrix, sojourn time distributions and, for a fitted model, the log-likelihood and the number of sequences and of observations. The components of a model are still obtained by x$... (or str(unclass(x))). - summary() methods for the fitted models (smmfit, mmfit): table of the estimated coefficients with their standard errors, log-likelihood, AIC and BIC. - coef(), vcov() and nobs() methods. coef() returns the transition probabilities and the parameters of the sojourn time distributions; vcov() returns the asymptotic variance-covariance matrix of the estimators: multinomial for the transition probabilities of a Markov chain, inverse of the observed Fisher information (numerical Hessian of the log-likelihood, censored sojourn times included) for a parametric semi-Markov model. For a non-parametric semi-Markov model, the asymptotic variances remain given by get.kernel(var = TRUE) and the reliability functions. - logLik() now returns an object of class "logLik", with the attributes df (number of parameters, get.Kpar()) and nobs (total length of the sequences), so that stats::AIC() and stats::BIC() also apply to it; the methods AIC() and BIC() of the package are computed from it. Use as.numeric(logLik(x)) to get the value alone. Other changes - The sequences can be given as factors (in a list), as well as character or numeric vectors. - Checks of the arguments: the conditions use && and ||, so that the dimensions of an argument are only checked when its type is correct. The check that the initial distribution (init, init.estim) sums to one always succeeded, as well as the check of the rows of ptrans in mm(); they now give an error when the sum is not one. - The package is mirrored on GitHub (https://github.com/nicolasv-dev/smmR), where issues can be reported: the field BugReports points to its issues page, and CONTRIBUTING.md explains how to report a problem or propose a change. The former mirror (corentin-dev/smmR, version 1.0.4) is no longer updated. - New data set rouenRain: daily precipitation at the station Rouen-Boos (Météo-France, Normandy, France) from 1995 to 2024, with an example on the lengths of the summer dry spells. - logLik(), AIC() and BIC() of a non-parametric model censored at the end (cens.end = TRUE): the log-likelihood was NaN (or only the contribution of the initial distribution); it is now the log-likelihood of the couple Markov chain (state, backward recurrence time), computed from the kernel of the model. It is -Inf when the model gives a probability 0 to an observed sojourn time: this happens for a fitted non-parametric model when the last (censored) sojourn time of a sequence is longer than all the complete ones, since the estimated sojourn time distributions are then normalized on the complete sojourn times. - Vignette Textile-Factory: the package is called smmR (it was still called SMM, the name of the previous package), and the simulated sequence is reproducible (seed = 1). Changes in version 1.0.6 (2026-11-27) Breaking changes - getKernel() and getProcesses() are renamed get.kernel() and get.processes(), as the other get.*() functions. The old names still work but are deprecated (see ?smmR-deprecated). - In the output of get.processes(), the list of the sojourn times is now named Xm (it was Lm), as the sojourn times $X_n$ of the semi-Markov theory. - The columns of the confidence limits returned by reliability(), availability(), maintainability(), failureRate(), mttf() and mttr() for fitted models are now named lwr and upr (it was lwr and upper). Bug fixes - The vectors computed in C++ (counting processes) were returned as one-column matrices when the package was loaded with devtools::load_all() (error "non-conformable arrays" in fitsmm(), issue #18): the option RCPP_ARMADILLO_RETURN_COLVEC_AS_VECTOR is now set for all the source files in src/Makevars. - simulate(): with censoring at the beginning and at the end, the simulated sequences could be one element longer than requested. - logLik(), AIC() and BIC() failed for all the models (error "The parameter 'sequences' should be a list of vectors"): the argument sequences was not correctly extracted from .... It can now be given as sequences = or as the first unnamed argument; for fitted models it is optional. - get.limitDistribution() returned $\nu_j (m_j + 1) / \sum_l \nu_l (m_l + 1)$ instead of $\nu_j m_j / \sum_l \nu_l m_l$: the mean sojourn times were shifted by 1 (the kernel is given at times $0, 1, \dots$). - get.processes(), get.Niuj(), fitsmm() and fitmm() failed when a sequence contained only one state (no change of state), and did not accept sequences of class integer. - meanSojournTimes() returns again a vector named with the states. - failureRate(failure.rate = "RG"): the asymptotic variance (and so the confidence intervals) of the RG-failure rate was the one of the BMP-failure rate; it is now sigma_lambda^2(k) / (1 - lambda(k))^2 (delta method, Barbu and Limnios, 2008, Corollary 5.1). - The counting processes (used by fitsmm() and returned by get.processes()) failed when all the observed sojourn times were equal to 1 ("incompatible matrix dimensions"). Minor improvements - ?simulate.smm, ?simulate.smmfit: the length of the simulated sequences is explained (without censoring, the last sojourn time is entirely simulated, so that the sequences can be longer than requested; issue #17). - Examples for reliability(), availability(), maintainability(), failureRate(), mttf(), mttr(), meanSojournTimes(), meanRecurrenceTimes(), get.kernel(), simulate(), plot.smm() and the is.*() functions; non-regression tests for the bugs fixed in this version. - Description of the models and of the notation in ?smmR-package, recalled at the beginning of each help page. - The internal function .failureRateBMP() has no more a help page (its content is in ?failureRate); better description of epsilon and of the confidence intervals in ?failureRate; the system is denoted S (calligraphic) in the help pages and the vignettes. - The field BugReports is removed from DESCRIPTION (the GitHub mirror is no longer maintained): bugs can be reported to the maintainer. - convolution() returns a vector (it returned a one-column matrix). - get.f() returns a vector for type.sojourn = "f" for parametric models, as for nonparametric models. - get.Niuj() returns an array with named dimensions. - get.qy(), get.P() and get.Py() were defined twice (as generic functions and as functions); only the functions are kept. - New documentation of convolution(), matrixConvolution(), get.H(), get.psi(), get.P(), get.qy(), get.Py(), get.f(), get.limitDistribution(), get.stationaryDistribution(), get.Kpar(), get.processes() and get.Niuj() (formulas, references to Barbu and Limnios (2008), examples), and of the methods logLik(), AIC() and BIC() (?logLik.smm). Changes in version 1.0.2.9000 Bug fixes - Increase the tolerance level used when checking the arguments/parameters so that no issues are generated by the CRAN Package Check Issue Kinds "noLD". Previously, the epsilon/tolerance was .Machine$double.eps, now it is sqrt(.Machine$double.eps). Changes in version 1.0.2 (2021-03-17) Bug fixes - Remove a bad argument check of the transition matrix ptrans in the S3 class mm: when the order of the Markov model is k = 1, we checked if all diagonal elements of the transition matrix ptrans was 0 (transition to the same states were impossible). Minor Improvements - Add more examples in the documentation. Changes in version 1.0.1 (2021-03-09) Minor Improvements - Added a NEWS.md file to track changes to the package. - Remove Depends field in DESCRIPTION file. Bug fixes - For initial distribution, transition matrices and conditional sojourn time distributions, we allow the fact that the sum of the probabilities may not be equal to 1 exactly due to round-off errors (we introduce .Machine$double.eps).