Learn R Programming

ProfileLadder (version 0.2.2)

mcStates: Access Markov Chain States in the MACRAME Algorithm

Description

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.

Usage

mcStates(object)

Value

The vector of the Markov chain states that are used by the MACRAME algorithm.

Arguments

object

An object of the class profileLadder returned from the function mcReserve() or an object of the class mcSetup returned from the function incrExplor().

See Also

mcReserve(), incrExplor(), mcBreaks(), mcTrans()

Examples

Run this code
## MACRAME reserve prediction with the DEFAULT Markov chain setup 
output <- mcReserve(CameronMutual)

## Extracting the corresponding Markov states
mcStates(output)

#' ## Extracting the corresponding states when explicit breaks are used
mcStates(mcReserve(CameronMutual, breaks = c(1000, 2000, 3000)))

Run the code above in your browser using DataLab