R: Converts CTMC_PO (either CTMC_PO_1 or CTMC_PO_many) to...
CTMCPO2indepIntervals
R Documentation
Converts CTMC_PO (either CTMC_PO_1 or CTMC_PO_many) to independent intervals.
Description
The markov property means that conditional on endpoints, each
interval of a markov chain is independent of the others.
For this reason computations are often done on intervals.
Usage
## S3 method for class 'CTMC_PO_1'
CTMCPO2indepIntervals(partialDat)
## S3 method for class 'CTMC_PO_many'
CTMCPO2indepIntervals(partialDat)
Arguments
partialDat
CTMC_PO_1 or CTMC_PO_many
Value
This function converts data into a nx3 matrix where
the first column is the starting state, the second is the ending state
and the third is the length of time the interval spanned. No
distinction is made between data from "separate" units or
separate intervals from the same markov chain.