entropyRate() for finite irreducible DTMCs, with
configurable logarithm base and support for row- and column-stochastic
storage.kemenyConstant() for finite irreducible DTMCs,
with support for both row- and column-stochastic storage and tests for
the zero-diagonal hitting-time convention.hittingProbabilities() robust to arbitrarily small
positive transitions by combining graph-based zero/one classification
with a relative-residual Neumann iteration.fundamentalMatrix() for finite absorbing chains,
including support for column-stochastic storage.absorptionProbabilities() by solving
(I - Q) B = R directly instead of explicitly forming
(I - Q)^{-1}.assessStationarity().htest objects and use the standard
print.htest() output, while retaining the legacy
dof field for compatibility.assessOrder() on the same
htest convention, including
parameter = c(df = ...) and the standard test output.statistical_analysis section with
numerical test results and time-homogeneity examples.assessStationarity() documentation example used by package
checks.verifyEmpiricalToTheoretical() to use row
totals when constructing expected transition counts for its row-wise
multinomial likelihood-ratio test. This fixes a historical use of column
totals and changes the Kullback et al. benchmark from 6.551795 to
6.518384, without changing its inferential conclusion.absorbingStates support to
markovchainFit() for MLE fits of sequence data with known
terminal states.generatorToTransitionMatrix(). The function now safely
handles absorbing states (where the diagonal element is exactly 0)
without returning NaNs or crashing.clean_nas() (used by createSequenceMatrix()
and other fitting functions). By pre-calculating the exact number of
valid elements before array instantiation, the package now avoids
continuous memory reallocations, resulting in faster parsing of large
sequences containing NA values.Handled R_CHECK_PACKAGES_USED_IN_DEMO