
Access Markov Chain States in the MACRAME Algorithm
mcStates.Rd
Retrieves the Markov chain components from a profileLadder
object returned
from the function mcReserve()
or the mcSetup
object returned
from the function incrExplor()
. In particular, the function returns
the vector of the states used by the underlying Markov Chain utilized for
reserve prediction in the MACRAME algorithm.
Arguments
- object
An object of the class
profileLadder
returned from the functionmcReserve()
or an object of the classmcSetup
returned from the functionincrExplor()
.
Examples
## MACRAME reserve prediction with the DEFAULT Markov chain setup
output <- mcReserve(CameronMutual)
## Extracting the corresponding Markov states
mcStates(output)
#> [1] 13.0 81.0 197.0 302.5 438.0 601.0 948.0 1672.5 3073.0 3993.0
#' ## Extracting the corresponding states when explicit breaks are used
mcStates(mcReserve(CameronMutual, breaks = c(1000, 2000, 3000)))
#> [1] 291.0 1595.0 2773.5 3955.0