Learn R Programming

mcwr (version 1.0.0)

Markov Chains with Rewards

Description

In the context of multistate models, which are popular in sociology, demography, and epidemiology, Markov chain with rewards calculations can help to refine transition timings and so obtain more accurate estimates. The package code accommodates up to nine transient states and irregular age (time) intervals. Traditional demographic life tables result as a special case. Formulas and methods involved are explained in detail in the accompanying article: Schneider / Myrskyla / van Raalte (2021): Flexible Transition Timing in Discrete-Time Multistate Life Tables Using Markov Chains with Rewards, MPIDR Working Paper WP-2021-002.

Copy Link

Version

Install

install.packages('mcwr')

Monthly Downloads

189

Version

1.0.0

License

MIT + file LICENSE

Maintainer

Daniel Schneider

Last Published

March 10th, 2021

Functions in mcwr (1.0.0)

mcwr_exit

Examine last (exit) row of data set
mcwr_exampledata

Load mcwr example data
mcwr_switch

Switch from-state and target state
mcwr_genvars

Generate mcwr variables
mcwr

mcwr: Markov chain with rewards calculations
mcwr_check

Check mcwr data frame
mcwr_expectancies

Calculate expectancies