Package: DemoKin 1.0.3

Iván Williams

DemoKin: Estimate Population Kin Distribution

Estimate population kin counts and its distribution by type, age and sex. The package implements one-sex and two-sex framework for studying living-death availability, with time varying rates or not, and multi-stage model.

Authors:Iván Williams [cre], Diego Alburez-Gutierrez [aut], Xi Song [ctb], Caswell Hal [ctb]

DemoKin_1.0.3.tar.gz
DemoKin_1.0.3.zip(r-4.5)DemoKin_1.0.3.zip(r-4.4)DemoKin_1.0.3.zip(r-4.3)
DemoKin_1.0.3.tgz(r-4.4-any)DemoKin_1.0.3.tgz(r-4.3-any)
DemoKin_1.0.3.tar.gz(r-4.5-noble)DemoKin_1.0.3.tar.gz(r-4.4-noble)
DemoKin_1.0.3.tgz(r-4.4-emscripten)DemoKin_1.0.3.tgz(r-4.3-emscripten)
DemoKin.pdf |DemoKin.html
DemoKin/json (API)
NEWS

# Install 'DemoKin' in R:
install.packages('DemoKin', repos = c('https://ivanwilli.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/ivanwilli/demokin/issues

Datasets:
  • U_caswell_2021 - Historic and projected survival ratios from Sweden used in Caswell
  • demokin_codes - DemoKin codes, Caswell (2020) codes, and useful labels.
  • f_caswell_2021 - Historic and projected fertility ratios from Sweden used in Caswell
  • fra_asfr_sex - Fertility for France (2012) by sex in Caswell (2022).
  • fra_surv_sex - Survival probability for France (2012) by sex in Caswell (2022).
  • kin_svk1990_caswell2020 - Output for Slovakia 1990 in Caswell (2020).
  • pi_caswell_2021 - Historic and projected mother´s age distribution of childbearing from Sweden used in Caswell
  • svk_Hxs - Age where assign offspring of individuals in each partity stage (Caswell, 2021). All to zero age in this case.
  • svk_Uxs - Probability of transition among parity stage for Slovakia in 1990, for each age, conditional on survival (Caswell, 2021).
  • svk_fxs - Female Slovakian fertility rates by parity stage in 1990
  • svk_pxs - Female Slovakian survival probabilities by parity stage in 1990
  • swe_Sx - Female swedish survival ratios from 1900 to 2015
  • swe_asfr - Swedish age-specific fertility rates from 1900 to 2015
  • swe_pop - Female swedish population from 1900 to 2015
  • swe_px - Female swedish survival probabilities from 1900 to 2015

On CRAN:

demographykinship

4.99 score 23 stars 17 scripts 247 downloads 17 exports 32 dependencies

Last updated 10 days agofrom:3c59fbd040. Checks:ERROR: 7. Indexed: yes.

TargetResultDate
Doc / VignettesFAILNov 13 2024
R-4.5-winERRORNov 13 2024
R-4.5-linuxERRORNov 13 2024
R-4.4-winERRORNov 13 2024
R-4.4-macERRORNov 13 2024
R-4.3-winERRORNov 13 2024
R-4.3-macERRORNov 13 2024

Exports:%>%kinkin_multi_stagekin_multi_stage_time_variant_2sexkin_time_invariantkin_time_invariant_2sexkin_time_invariant_2sex_codkin_time_variantkin_time_variant_2sexkin_time_variant_2sex_codkin2sexoutput_period_cohort_combinationplot_diagramrename_kintimevarying_kintimevarying_kin_2sextimevarying_kin_2sex_cod

Dependencies:clicpp11crayondata.tabledplyrfansigenericsgluehmsigraphlatticelifecyclemagrittrMASSMatrixmatrixcalcpillarpkgconfigprettyunitsprogresspurrrR6rlangstringistringrtibbletictoctidyrtidyselectutf8vctrswithr

Readme and manuals

Help Manual

Help pageTopics
Title time invariant two-sex multi-state kin projectionsall_kin_dy
Title time-variant two-sex multi-state kin projectionsall_kin_dy_TV
Title Accumulated kin by each age of Focal, for each time period, and cohort of birthcreate_cumsum_df
Title joint age*stage distributions of kin by each age of Focal, for each time period, and cohort of birthcreate_full_dists_df
DemoKin codes, Caswell (2020) codes, and useful labels.demokin_codes
Historic and projected fertility ratios from Sweden used in Caswell (2021)f_caswell_2021
Fertility for France (2012) by sex in Caswell (2022).fra_asfr_sex
Survival probability for France (2012) by sex in Caswell (2022).fra_surv_sex
Estimate kin counts in a one-sex framework.kin
Estimate kin counts by age and stage in a time invariant frameworkkin_multi_stage
Estimate kin counts by age, stage, and sex, in a time variant frameworkkin_multi_stage_time_variant_2sex
Output for Slovakia 1990 in Caswell (2020).kin_svk1990_caswell2020
Estimate kin counts in a time invariant framework for one-sex model (matrilineal/patrilineal)kin_time_invariant
Estimate kin counts in a time invariant framework for two-sex model.kin_time_invariant_2sex
Estimate kin counts in a time invariant framework for two-sex model.kin_time_invariant_2sex_cod
Estimate kin counts in a time variant framework (dynamic rates) for one-sex model (matrilineal/patrilineal)kin_time_variant
Estimate kin counts in a time variant framework (dynamic rates) in a two-sex framework (Caswell, 2022)kin_time_variant_2sex
Estimate kin counts in a time variant framework (dynamic rates) in a two-sex framework (Caswell, 2022)kin_time_variant_2sex_cod
Estimate kin counts in a two-sex frameworkkin2sex
APC combination to returnoutput_period_cohort_combination
Historic and projected mother´s age distribution of childbearing from Sweden used in Caswell (2021)pi_caswell_2021
Mixing distributions for the time-invariant multi-state 2-sex model: Non-parity casepi_mix
Mixing distributions for the time-invariant multi-state 2-sex model: Parity-specific casepi_mix_parity
Mixing distributions for the time-variant multi-state 2-sex model: Non-parity casepi_mix_TV
Mixing distributions for the time-variant multi-state 2-sex model: Parity-specific casepi_mix_TV_parity
plot a Kin diagram (network)plot_diagram
rename kinrename_kin
Female Slovakian fertility rates by parity stage in 1990 (Caswell, 2021)svk_fxs
Age where assign offspring of individuals in each partity stage (Caswell, 2021). All to zero age in this case.svk_Hxs
Female Slovakian survival probabilities by parity stage in 1990 (Caswell, 2021)svk_pxs
Probability of transition among parity stage for Slovakia in 1990, for each age, conditional on survival (Caswell, 2021).svk_Uxs
Swedish age-specific fertility rates from 1900 to 2015swe_asfr
Female swedish population from 1900 to 2015swe_pop
Female swedish survival probabilities from 1900 to 2015swe_px
Female swedish survival ratios from 1900 to 2015swe_Sx
one time projection kintimevarying_kin
one time projection kintimevarying_kin_2sex
one time projection kintimevarying_kin_2sex_cod
Historic and projected survival ratios from Sweden used in Caswell (2021)U_caswell_2021