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

16 exports 22 stars 2.23 score 31 dependencies 16 scripts 243 downloads

Last updated 6 months agofrom:bd626f204f. Checks:ERROR: 1 WARNING: 6. Indexed: yes.

TargetResultDate
Doc / VignettesFAILSep 14 2024
R-4.5-winWARNINGSep 14 2024
R-4.5-linuxWARNINGSep 14 2024
R-4.4-winWARNINGSep 14 2024
R-4.4-macWARNINGSep 14 2024
R-4.3-winWARNINGSep 14 2024
R-4.3-macWARNINGSep 14 2024

Exports:%>%kinkin_multi_stagekin_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.tabledplyrfansigenericsgluehmsigraphlatticelifecyclemagrittrMASSMatrixmatrixcalcpillarpkgconfigprettyunitsprogresspurrrR6rlangstringistringrtibbletidyrtidyselectutf8vctrswithr

Readme and manuals

Help Manual

Help pageTopics
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
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
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