kin_multi_stage {DemoKin} | R Documentation |
Estimate kin counts by age and stage in a time invariant framework
Description
Implementation of age-stage kin estimates (multi-state) by Caswell (2020). Stages are implied in length of input lists.
Usage
kin_multi_stage(
U = NULL,
f = NULL,
D = NULL,
H = NULL,
birth_female = 1/2.04,
output_kin = NULL,
parity = FALSE,
list_output = FALSE
)
Arguments
U |
list. age elements with column-stochastic transition matrix with dimension for the state space, conditional on survival. |
f |
matrix. state-specific fertility (age in rows and states in columns). Is accepted also a list with for each age-class. |
D |
matrix. survival probabilities by state (age in rows and states in columns). Is accepted also a list for each state with survival matrices. |
H |
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. |
birth_female |
numeric. Female portion at birth. |
output_kin |
character. kin to return. For example "m" for mother, "d" for daughter. See the |
parity |
logical. parity states imply age distribution of mothers re-scaled to not have parity 0 when Focal born. Default |
list_output |
logical. Results as a list. Default |
Value
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.