Learn R Programming

⚠️There's a newer version (0.10.3) of this package.Take me there.

markovchain

R package providing classes, methods and function for easily handling Discrete Time Markov Chains (DTMC), performing probabilistic analysis and fitting.

Install the current release from CRAN:

install.packages('markovchain')

Install the development version from GitHub:

devtools::install_github('spedygiorgio/markovchain')

Copy Link

Version

Install

install.packages('markovchain')

Monthly Downloads

8,520

Version

0.6.9.10

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Giorgio Spedicato

Last Published

June 2nd, 2018

Functions in markovchain (0.6.9.10)

fitHighOrderMultivarMC

Function to fit Higher Order Multivariate Markov chain
expectedRewardsBeforeHittingA

Expected first passage Rewards for a set of states in a markovchain
firstPassage

First passage across states
is.accessible

Verify if a state j is reachable from state i.
is.irreducible

Function to check if a Markov chain is irreducible
verifyMarkovProperty

Various functions to perform statistical inference of DTMC
markovchain-package

Easy Handling Discrete Time Markov Chains
steadyStates

Stationary states of a markovchain objeect
tm_abs

Single Year Corporate Credit Rating Transititions
markovchain-class

Class "markovchain"
kullback

Example from Kullback and Kupperman Tests for Contingency Tables
is.CTMCirreducible

Check if CTMC is irreducible
createSequenceMatrix

Function to fit a discrete Markov chain
transition2Generator

Return the generator matrix for a corresponding transition matrix
markovchainList-class

Class "markovchainList"
markovchainListFit

markovchainListFit
ictmc-class

An S4 class for representing Imprecise Continuous Time Markovchains
show,hommc-method

Function to display the details of hommc object
is.TimeReversible

checks if ctmc object is time reversible
impreciseProbabilityatT

Calculating full conditional probability using lower rate transition matrix
hommc-class

An S4 class for representing High Order Multivariate Markovchain (HOMMC)
predictiveDistribution

Function to compute the probability of observing a new data set, given a data set
holson

Holson data set
name<-

Method to set name of markovchain object
priorDistribution

Prior Distribution
states

Defined states of a transition matrix
inferHyperparam

Function to infer the hyperparameters for Bayesian inference from an a priori matrix or a data set
noofVisitsDist

return a joint pdf of the number of visits to the various states of the DTMC
markovchainSequence

Function to generate a sequence of states from homogeneous Markov chains.
multinomialConfidenceIntervals

A function to compute multinomial confidence intervals of DTMC
predictHommc

Simulate a higher order multivariate markovchain
probabilityatT

Calculating probability from a ctmc object
rctmc

Function to generate a sequence of random CTMC transitions.
rain

Alofi island daily rainfall
rmarkovchain

Function to generate a sequence of states from homogeneous or non-homogeneous Markov chains.
preproglucacon

Preprogluccacon DNA protein bases sequences
sales

Sales Demand Sequences
transitionProbability

Function to get the transition probabilities from initial to subsequent states.
committorAB

Calculates committor of a markovchain object with respect to set A, B
conditionalDistribution

conditionalDistribution of a Markov Chain
firstPassageMultiple

function to calculate first passage probabilities
expectedRewards

Expected Rewards for a markovchain
ExpectedTime

Returns expected hitting time from state i to state j
HigherOrderMarkovChain-class

Class "HigherOrderMarkovChain"
craigsendi

CD4 cells counts on HIV Infects between zero and six month
ctmc-class

Class "ctmc"
ctmcFit

Function to fit a CTMC
generatorToTransitionMatrix

Function to obtain the transition matrix from the generator.
absorbingStates

Various function to perform structural analysis of DTMC
fitHigherOrder

Functions to fit a higher order Markov chain
blanden

Mobility between income quartiles
freq2Generator

Returns a generator matrix corresponding to frequency matrix
name

Method to retrieve name of markovchain object