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).
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”).
?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).
.Machine$double.eps, now it is
sqrt(.Machine$double.eps).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).Added a NEWS.md file to track changes to the
package.
Remove Depends field in DESCRIPTION file.
.Machine$double.eps).