% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LifeTable.R
\name{LifeTable.core}
\alias{LifeTable.core}
\title{LifeTable.core}
\usage{
LifeTable.core(x, Dx, Ex, mx, qx, lx, dx, sex, lx0, ax)
}
\arguments{
\item{x}{Numeric vector of ages at the beginning of each age interval. 
For a full life table, use single-year ages (e.g., \code{0:110}). 
For an abridged life table, use the lower bound of each interval 
(e.g., \code{c(0, 1, 5, 10, ..., 110)}).}

\item{Dx}{Death counts. Each element represents the total number of 
deaths during the calendar year to persons aged \code{x} to 
\code{x + n} (where \code{n} is the length of the age interval). 
Must be provided together with \code{Ex}.}

\item{Ex}{Exposure-to-risk in the period. This is usually approximated 
by the mid-year population aged \code{x} to \code{x + n}. Must be 
provided together with \code{Dx}.}

\item{mx}{Age-specific death rate in the age interval \code{[x, x+n)}. 
Defined as \code{Dx / Ex}.}

\item{qx}{Probability of dying within the age interval \code{[x, x+n)}.}

\item{lx}{Probability of surviving to exact age \code{x} (if \code{lx0 = 1}), 
or the number of survivors at exact age \code{x} (if \code{lx0 > 1}). 
When \code{lx} is the sole input, the values are re-scaled to the 
chosen radix \code{lx0}.}

\item{dx}{Number of deaths in the life-table population occurring in 
the age interval \code{[x, x+n)}. When \code{dx} is the sole input, 
the values are re-scaled to sum to \code{lx0}.}

\item{sex}{Sex of the population. Options are \code{NULL} (default), 
\code{"male"}, \code{"female"}, or \code{"total"}. When specified, 
the first two entries of the \code{ax} column are adjusted using 
Coale-Demeny coefficients, producing more accurate life-table values 
at the youngest ages. The adjustment differs slightly between males 
and females.}

\item{lx0}{Radix, the starting population (or probability scale) at 
age 0. Default is \code{100,000}. All subsequent life-table columns 
(\code{lx}, \code{dx}, \code{Lx}, \code{Tx}) are scaled accordingly.}

\item{ax}{Numeric vector representing the average number of person-years 
lived in the age interval by those who die in that interval. If 
\code{NULL} (the default), \code{ax} is estimated internally using 
a standard formula. You may supply a single value (applied to all 
intervals) or a vector of the same length as \code{x}. A common 
assumption is \code{ax = 0.5}, which places deaths at the midpoint 
of each interval.}
}
\value{
A data.frame containing life table results
}
\description{
LifeTable.core
}
\keyword{internal}
