lt_ambiguous: calculate an abridged or single age lifetable from abridged...

View source: R/lt_regroup_age.R

lt_ambiguousR Documentation

calculate an abridged or single age lifetable from abridged or single age data

Description

This is a wrapper around the other lifetable utilities. We start with either nMx, nqx, or lx in single or abridged ages, and returns a full lifetable in either single or abridged ages. All optional arguments of lt_abridged() or ⁠lt_single*()⁠ can be passed in, for instance the nax assumptions or the extrapolation arguments.

Usage

lt_ambiguous(
  nMx_or_nqx_or_lx = NULL,
  type = "m",
  Age = NULL,
  Sex = NULL,
  Single = FALSE,
  ...
)

Arguments

nMx_or_nqx_or_lx

numeric vector of either nMx, nqx, or lx

type

character, which variable is x?, either "m", "q", or "l". Default "m"

Age

integer vector of the lower age bounds of x

Sex

character, "m", "f", or "b".

Single

logical, do we want output in single ages?

...

optional arguments passed to lt_abridged() or ⁠lt_single*()⁠


timriffe/DemoTools documentation built on Oct. 14, 2024, 12:53 p.m.