% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chapter14_multiple_decrement.R
\name{tp00_tp01_euler}
\alias{tp00_tp01_euler}
\title{Euler approximation of disability-state probabilities}
\usage{
tp00_tp01_euler(h, n, mu01, mu02, mu10, mu12, p00_0 = 1, p01_0 = 0)
}
\arguments{
\item{h}{Positive step size.}

\item{n}{Nonnegative final time.}

\item{mu01}{Healthy-to-disabled intensity function.}

\item{mu02}{Healthy-to-deceased intensity function.}

\item{mu10}{Disabled-to-healthy intensity function.}

\item{mu12}{Disabled-to-deceased intensity function.}

\item{p00_0}{Initial healthy-state probability.}

\item{p01_0}{Initial disabled-state probability.}
}
\value{
A data frame with columns \code{t}, \code{tp00}, \code{tp01},
  and \code{tp02}.
}
\description{
Approximates probabilities of being healthy, disabled, or deceased in a
three-state model that allows recovery from disability. The final time is
always included, with a shorter final step when needed.
}
\examples{
mu01 <- function(t) 0.10 * t + 0.20
mu02 <- function(t) 0.20
mu10 <- function(t) 0.50
mu12 <- function(t) 0.125 * t + 0.20
tp00_tp01_euler(0.10, 2, mu01, mu02, mu10, mu12)

}
