Description Usage Arguments Details Value Author(s) See Also Examples

Compute the age in years of an individual based on the birth date and another date

1 | ```
age(from, to)
``` |

`from` |
a vector of dates (birth dates) |

`to` |
a vector of current dates |

For linear interpolation the auc function computes the area under the curve using the composite trapezoid rule. For area under a spline interpolation, auc uses the splinefun function in combination with the integrate to calculate a numerical integral. The auc function can handle unsorted time values, missing observations, ties for the time values, and integrating over part of the area or even outside the area.

A vector of ages (in years)

Claus Ekstrom [email protected]

1 2 3 |

MESS documentation built on Nov. 24, 2018, 1:04 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.