R/kin_multi_stage.R
kin_multi_stage.Rd
Implementation of age-stage kin estimates (multi-state) by Caswell (2020). Stages are implied in length of input lists.
kin_multi_stage(
U = NULL,
f = NULL,
D = NULL,
H = NULL,
birth_female = 1/2.04,
output_kin = NULL,
parity = FALSE,
list_output = FALSE
)
list. age elements with column-stochastic transition matrix with dimension for the state space, conditional on survival.
matrix. state-specific fertility (age in rows and states in columns). Is accepted also a list with for each age-class.
matrix. survival probabilities by state (age in rows and states in columns). Is accepted also a list for each state with survival matrices.
matrix. assigns the offspring of individuals in some stage to the appropriate age class (age in rows and states in columns). Is accepted also a list with a matrix for each state.
numeric. Female portion at birth.
character. kin to return. For example "m" for mother, "d" for daughter. See the vignette
for all kin types.
logical. parity states imply age distribution of mothers re-scaled to not have parity 0 when Focal born. Default TRUE
.
logical. Results as a list. Default FALSE
.
A data frame with focal´s age, related ages and type of kin
(for example d
is daughter, oa
is older aunts, etc.), living and death kin counts, and specific stage. If list_output = TRUE
then this is a list with elements as kin types.