This function takes an individual's attributes and events and calculates an estimated age based on the date of the fact and their age when the fact applied.

guess_age_from_indi_events(tg, xref, agg_fn = mean)

Arguments

tg

A tidyged object.

xref

The xref of an individual.

agg_fn

If multiple ages are calculated, the function to use to aggregate them.

Value

A numeric value giving the estimated age. A numeric value less than zero means no determination could be made.