propertrMat: Check and initialise the transition matrix used

Description Usage Arguments Value References Examples

Description

This method is used to check and initialise the transition matrix used

Usage

1
propertrMat(trMatrix)

Arguments

trMatrix

Transition matrix of the Markov chain

Value

Transition matrix of the Markov chain

References

Grimmett, G., & Stirzaker, D. (2001). Probability and Random Processes (3rd ed.). New York: Oxford University Press.

Examples

1
2
3
4
5
6
egstate <- c("a", "b", "c")
MC <- matrix(data = c(1, 0, 0, 0, 1, 0, 0, 0, 1),
         nrow = 3, byrow = TRUE,
         dimnames = list(egstate, egstate))

propertrMat(MC)

ZiqingHo/BasicMC documentation built on May 21, 2019, 2:29 a.m.