Skip to contents

All functions

ExpectedTime()
Returns expected hitting time from state i to state j
HigherOrderMarkovChain-class
Higher order Markov Chains class
absorptionProbabilities()
Absorption probabilities
aggregateStates()
Aggregate a Markov chain's state space by Kullback-Leibler minimization
assessIndependence()
Test independence of consecutive states of an empirical sequence
autoLump()
Automatically aggregate a Markov chain by spectral clustering
autoplot.markovchain()
Plot a Markov chain with ggplot2
birthDeath()
Build a birth-death Markov chain
blanden
Mobility between income quartiles
closestReversible()
Closest reversible approximation of a Markov chain
committorAB()
Calculates committor of a markovchain object with respect to set A, B
conditionalDistribution()
conditionalDistribution of a Markov Chain
craigsendi
CD4 cells counts on HIV Infects between zero and six month
ctmc-class dim,ctmc-method initialize,ctmc_method states,ctmc-method steadyStates,ctmc-method plot,ctmc,missing-method
Continuous time Markov Chains class
ctmcFit()
Function to fit a CTMC
dirichletChain()
Markov chain from a Dirichlet process
entropyRate()
Entropy rate of a Markov chain
expectedRewards()
Expected Rewards for a markovchain
expectedRewardsBeforeHittingA()
Expected first passage Rewards for a set of states in a markovchain
firstPassage()
First passage across states
firstPassageMultiple()
function to calculate first passage probabilities
fitHighOrderMultivarMC()
Function to fit Higher Order Multivariate Markov chain
fitHigherOrder() seq2freqProb() seq2matHigh()
Functions to fit a higher order Markov chain
fitMTD()
Fit a mixture transition distribution (MTD) model
freq2Generator()
Returns a generator matrix corresponding to frequency matrix
fundamentalMatrix()
Fundamental matrix of an absorbing Markov chain
gamblersRuin()
Build a gambler's ruin Markov chain
generatorToTransitionMatrix()
Function to obtain the transition matrix from the generator
name()
Method to retrieve name of markovchain object
higherOrderLogLik()
Log-likelihood, deviance and information criteria of a higher order Markov chain
higherOrderPredict() higherOrderSimulate()
Next-state probabilities and simulation for higher order Markov chains
hittingProbabilities()
Hitting probabilities for markovchain
holson
Holson data set
hommc
An S4 class for representing High Order Multivariate Markovchain (HOMMC)
show(<hommc>)
Function to display the details of hommc object
ictmc-class ictmc
An S4 class for representing Imprecise Continuous Time Markovchains
identityChain()
Identity Markov chain
impliedTimescales()
Implied timescales of a Markov chain
impreciseProbabilityatT()
Calculating full conditional probability using lower rate transition matrix
inferHyperparam()
Function to infer the hyperparameters for Bayesian inference from an a priori matrix or a data set
is.CTMCirreducible()
Check if CTMC is irreducible
is.TimeReversible()
checks if ctmc object is time reversible
is.accessible()
Verify if a state j is reachable from state i.
is.irreducible()
Function to check if a Markov chain is irreducible (i.e. ergodic)
is.lumpable()
Check exact lumpability of a Markov chain
is.regular()
Check if a DTMC is regular
is.reversible()
Check whether a Markov chain is reversible
is.stochasticallyMonotone()
Check if a Markov chain is stochastically monotone
kemenyConstant()
Kemeny's constant of a Markov chain
kullback
Example from Kullback and Kupperman Tests for Contingency Tables
lazyChain()
Build a lazy version of a Markov chain
lump()
Aggregate a Markov chain over a partition
markovchain-class *,markovchain,markovchain-method *,markovchain,matrix-method *,markovchain,numeric-method *,matrix,markovchain-method *,numeric,markovchain-method ==,markovchain,markovchain-method !=,markovchain,markovchain-method absorbingStates,markovchain-method transientStates,markovchain-method recurrentStates,markovchain-method transientClasses,markovchain-method recurrentClasses,markovchain-method communicatingClasses,markovchain-method steadyStates,markovchain-method meanNumVisits,markovchain-method is.regular,markovchain-method is.irreducible,markovchain-method is.accessible,markovchain,character,character-method is.accessible,markovchain,missing,missing-method absorptionProbabilities,markovchain-method meanFirstPassageTime,markovchain,character-method meanFirstPassageTime,markovchain,missing-method meanAbsorptionTime,markovchain-method meanRecurrenceTime,markovchain-method conditionalDistribution,markovchain-method hittingProbabilities,markovchain-method canonicForm,markovchain-method coerce,data.frame,markovchain-method coerce,markovchain,data.frame-method coerce,table,markovchain-method coerce,markovchain,igraph-method coerce,markovchain,matrix-method coerce,markovchain,sparseMatrix-method coerce,sparseMatrix,markovchain-method coerce,matrix,markovchain-method coerce,Matrix,markovchain-method coerce,msm,markovchain-method coerce,msm.est,markovchain-method coerce,etm,markovchain-method dim,markovchain-method initialize,markovchain-method names<-,markovchain-method plot,markovchain,missing-method predict,markovchain-method print,markovchain-method show,markovchain-method summary,markovchain-method sort,markovchain-method t,markovchain-method [,markovchain,ANY,ANY,ANY-method ^,markovchain,numeric-method
Markov Chain class
markovchain markovchain-package
Easy Handling Discrete Time Markov Chains
.markovchainFitRcpp() createSequenceMatrix() markovchainFit()
Function to fit a discrete Markov chain
markovchainList-class [[,markovchainList-method dim,markovchainList-method predict,markovchainList-method print,markovchainList-method show,markovchainList-method
Non homogeneus discrete time Markov Chains class
markovchainListFit()
markovchainListFit
markovchainSequence()
Function to generate a sequence of states from homogeneous Markov chains.
meanAbsorptionTime()
Mean absorption time
meanFirstPassageTime()
Mean First Passage Time for irreducible Markov chains
meanNumVisits()
Mean num of visits for markovchain, starting at each state
meanRecurrenceTime()
Mean recurrence time
mergeWith()
Merge two Markov chains by convex combination of their transition matrices
mixingTime()
Mixing time of a Markov chain
multinomialConfidenceIntervals()
A function to compute multinomial confidence intervals of DTMC
names(<markovchain>)
Returns the states for a Markov chain object
noofVisitsDist()
Expected fraction of the first N steps spent in each state
normalizedEntropyRate()
Normalized entropy rate of a Markov chain
ones()
Returns an Identity matrix
populationGeneticsModel()
Build a population-genetics Markov chain (Moran or Wright-Fisher)
predictHommc()
Simulate a higher order multivariate markovchain
predictiveDistribution()
predictiveDistribution
preproglucacon
Preprogluccacon DNA protein bases sequences
priorDistribution()
priorDistribution
probabilityatT()
Calculating probability from a ctmc object
rain
Alofi island daily rainfall
randomMarkovChain()
Random Markov chain
rctmc()
rctmc
redistribute()
Evolution of a distribution over time
relaxationTime()
Relaxation time of a Markov chain
rmarkovchain()
Function to generate a sequence of states from homogeneous or non-homogeneous Markov chains.
rouwenhorst()
Discretize an AR(1) process into a Markov chain (Rouwenhorst's method)
sales
Sales Demand Sequences
selectOrder()
Select the order of a Markov chain by information criteria
sensitivity()
Sensitivity of the stationary distribution to a state's transition row
`name<-`()
Method to set name of markovchain object
slem()
Second largest eigenvalue modulus (SLEM) of a Markov chain
spectralGap()
Spectral gap of a Markov chain
states()
Defined states of a transition matrix
verifyMarkovProperty() assessOrder() verifyEmpiricalToTheoretical() verifyHomogeneity() assessStationarity()
Test the first-order Markov property of an empirical sequence
steadyStates()
Stationary states of a markovchain object
period() communicatingClasses() recurrentClasses() transientClasses() transientStates() recurrentStates() absorbingStates() canonicForm()
Various function to perform structural analysis of DTMC
subchain()
Restrict a Markov chain to a subset of states
tauchen()
Discretize an AR(1) process into a Markov chain (Tauchen's method)
timeCorrelations() timeRelaxations()
Time correlations and time relaxations of observed sequences
tm_abs
Single Year Corporate Credit Rating Transititions
toBoundedChain()
Apply a boundary condition to a Markov chain's first and last state
toDictionary() fromDictionary()
Represent a Markov chain as a plain R list
toDot() toMermaid()
Export the transition graph as Graphviz DOT or Mermaid text
toFile() fromFile()
Write or read a Markov chain to or from a file
toNthOrder()
Return the n-step transition chain
topologicalEntropy()
Topological entropy of a Markov chain
transition2Generator()
Return the generator matrix for a corresponding transition matrix
transitionProbability()
Function to get the transition probabilities from initial to subsequent states.
urnModel()
Build an Ehrenfest urn model Markov chain
zeros()
Matrix to create zeros