timriffe / DemoTools

Tools for the evaluation, adjustment, and standardization of demographic data
https://timriffe.github.io/DemoTools
Other
59 stars 31 forks source link

Function for single year lifetable from 1qx input #151

Closed sarahertog closed 3 years ago

sarahertog commented 3 years ago

This function returns all lifetable columns for a single year life table from 1qx column as input. It first approximates 1a0 via the lt_rule_1a0() function, then computes 1mx via the lt_id_qa_m(), and lastly completes the lifetable computations by passing the 1mx to the lt_single_mx() function.

timriffe commented 3 years ago

Thanks Sara, merging this in. Probably we'll end up combining the two functions somehow to make it more versatile, but best to have this for now.