% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/survival_models.R
\name{tpx}
\alias{tpx}
\title{Conditional survival probability for Tx}
\usage{
tpx(t, x, model, ...)
}
\arguments{
\item{t}{Numeric vector of durations (\eqn{t \ge 0}).}

\item{x}{Numeric vector of ages (\eqn{x \ge 0}).}

\item{model}{One of \code{"uniform"}, \code{"exponential"}, \code{"gompertz"},
\code{"makeham"}, \code{"weibull"}.}

\item{...}{Model parameters:
\itemize{
  \item uniform: \code{omega}
  \item exponential: \code{lambda}
  \item gompertz: \code{B}, \code{c}
  \item makeham: \code{A}, \code{B}, \code{c}
  \item weibull: \code{shape}, \code{scale}
}}
}
\value{
Numeric vector in \eqn{[0,1]}.
}
\description{
Computes \eqn{{}_t p_x = S_0(x+t)/S_0(x)}.
}
\details{
Vectorization rule:
- If \code{t} and \code{x} are the same length, values are computed elementwise.
- If one of \code{t} or \code{x} has length 1, it is recycled to match the other.
}
