kin_time_invariant {DemoKin}R Documentation

Estimate kin counts in a time invariant framework for one-sex model (matrilineal/patrilineal)

Description

Mtrix implementation of Goodman-Keyfitz-Pullum equations adapted by Caswell (2019).

Usage

kin_time_invariant(
  p = NULL,
  f = NULL,
  birth_female = 1/2.04,
  pi = NULL,
  output_kin = NULL,
  list_output = FALSE
)

Arguments

p

numeric. A vector of survival probabilities with same length as ages.

f

numeric. A vector of age-specific fertility rates with same length as ages.

birth_female

numeric. Female portion at birth.

pi

numeric. For using some specific non-stable age distribution of childbearing (same length as ages). Default NULL.

output_kin

character. kin to return. For example "m" for mother, "d" for daughter. See vignette for all kin types.

list_output

logical. Results as a list with output_kin elements, with focal´s age in columns and kin ages in rows (2 * ages, last chunk of ages for death experience). Default FALSE

Value

A data frame with focal´s age, related ages and type of kin (for example d is daughter, oa is older aunts, etc.), alive and death. If list_output = TRUE then this is a list.


[Package DemoKin version 1.0.3 Index]