kin_time_variant {DemoKin} | R Documentation |
Estimate kin counts in a time variant framework (dynamic rates) for one-sex model (matrilineal/patrilineal)
Description
Matrix implementation of time variant Goodman-Keyfitz-Pullum equations in a matrix framework.
Usage
kin_time_variant(
p = NULL,
f = NULL,
pi = NULL,
n = NULL,
output_cohort = NULL,
output_period = NULL,
output_kin = NULL,
birth_female = 1/2.04,
list_output = FALSE
)
Arguments
p |
numeric. A matrix of survival ratios with rows as ages and columns as years. Column names must be equal interval. |
f |
numeric. A matrix of age-specific fertility rates with rows as ages and columns as years. Coincident with |
pi |
numeric. A matrix with distribution of childbearing with rows as ages and columns as years. Coincident with |
n |
numeric. A matrix of population with rows as ages and columns as years. Coincident with |
output_cohort |
integer. Year of birth of focal to return as output. Could be a vector. Should be within input data years range. |
output_period |
integer. Year for which to return kinship structure. Could be a vector. Should be within input data years range. |
output_kin |
character. kin to return as output: "m" for mother, "d" for daughter,... See |
birth_female |
numeric. Female portion at birth. |
list_output |
logical. Results as a list with years elements (as a result of |
Details
See Caswell (2021) for details on formulas.
Value
A data frame of population kinship structure, with Focal's cohort, focal´s age, period year, type of relatives
(for example d
is daughter, oa
is older aunts, etc.), living and death kin counts, and age of (living or time deceased) relatives. If list_output = TRUE
then this is a list.