create_full_dists_df: Title joint age*stage distributions of kin by each age of...

View source: R/kin_multi_stage_time_variant_2sex.R

create_full_dists_dfR Documentation

Title joint age*stage distributions of kin by each age of Focal, for each time period, and cohort of birth

Description

Title joint age*stage distributions of kin by each age of Focal, for each time period, and cohort of birth

Usage

create_full_dists_df(
  kin_matrix_lists,
  kin_names,
  years,
  start_year,
  na,
  ns,
  specific_kin = NULL
)

Arguments

kin_matrix_lists

list of lists of kin matrices: list( list(X_focal), list(X_parents), ... ). Outer list is length 14 = number of kin. Inner lists have lenght = timescale so list(X_focal) = list(X_focalyear1,X_focalyear2,...,X_focalyearlast)

kin_names

list of characters. Corresponding to above lists: list("F","m",....)

years

vector. The timescale on which we implement the kinship model.

start_year

. First year of varying vital rates (e.g., if years = 1990:2000 then start_year = 1990)

na

numeric. Number of ages.

ns

numeric. Number of stages.

specific_kin

character. names of kin we wish to analyse, e.g., list("os","ys"). If null returns all 14.

Value

A data frame which gives for each age of Focal at each year in the timescale, the full age*stage dist of kin


IvanWilli/DemoKin documentation built on March 1, 2025, 3:46 a.m.