mfpt: mfpt

Description Usage Arguments Value

Description

Given a transition matrix, calculate mean time to reach one state for the first time from all other states.

Usage

1
mfpt(tm, deststate)

Arguments

tm

A transition probability matrix.

deststate

Index of the destination state. The deststate row and column are removed from tm to calcualte mfpt.

Value

A vector with one element for all states other than deststate. The value represents the mfpt to reach deststate from this state. A names attribute provides the index of states associated with the elements of the vector.


vancebee/MarkovSCD documentation built on May 13, 2019, 1:37 a.m.