R/kin_multi_stage_time_variant_2sex.R
kin_multi_stage_time_variant_2sex.Rd
Implementation of combined formal demographic models: Caswell II,III,IV.
kin_multi_stage_time_variant_2sex(
U_list_females = NULL,
U_list_males = NULL,
F_list_females = NULL,
F_list_males = NULL,
T_list_females = NULL,
T_list_males = NULL,
H_list = NULL,
birth_female = 0.49,
parity = FALSE,
output_kin = NULL,
summary_kin = TRUE,
sex_Focal = "Female",
initial_stage_Focal = NULL,
output_years
)
list with matrix entries: period-specific female survival probabilities. Age in rows and states in columns.
list with matrix entries: period-specific male survival probabilities. Age in rows and states in columns.
list with matrix with elements: period-specific female fertility (age in rows and states in columns).
list with matrix entries: period-specific male fertility (age in rows and states in columns).
list of lists with matrix entries: each outer list entry is period-specific, and composed of a list of stochastic matrices which describe age-specific female probabilities of transferring stage
list of lists with matrix entries: each outer list entry is period-specific, and composed of a list of stochastic matrices which describe age-specific male probabilities of transferring stage
list with matrix entries: redistribution of newborns across each stage to a specific age-class
numeric. birth ratio of females to males in population
logical. parity states imply age distribution of mothers re-scaled to not have parity 0 when Focal born. Default TRUE
.
vector. A vector of particular kin one wishes to obtain results for, e.g., c("m","d","oa"). Default is all kin types.
logical. Results as a data frame of accumulated kin by age of Focal if TRUE, and kin by their age*stage distribution by age of Focal if FALSE.
character. Female or Male as the user requests.
Numeric in Natural number set 1,2,...,. The stage which Focal is born into (e.g., 1 for parity 0)
vector. The times at which we wish to count kin: start year = output_years1, and end year = output_yearslength.
A data frame with focal age, kin age, kin stage, kin sex, year, cohort, and expected number of kin given these restrictions.