% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LifeTable.R
\name{coale.demeny.ax}
\alias{coale.demeny.ax}
\title{Find ax[1:2] indicators using Coale-Demeny coefficients
Here we adjust the first two values of ax to account for infant
mortality more accurately}
\usage{
coale.demeny.ax(x, mx, ax, sex)
}
\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{mx}{Age-specific death rate in the age interval \code{[x, x+n)}. 
Defined as \code{Dx / Ex}.}

\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.}

\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.}
}
\value{
A vector of coefficients
}
\description{
Find ax[1:2] indicators using Coale-Demeny coefficients
Here we adjust the first two values of ax to account for infant
mortality more accurately
}
\keyword{internal}
