Package: bayesTFR 7.4-4

bayesTFR: Bayesian Fertility Projection

Making probabilistic projections of total fertility rate for all countries of the world, using a Bayesian hierarchical model <doi:10.1007/s13524-011-0040-5> <doi:10.18637/jss.v106.i08>. Subnational probabilistic projections are also supported <doi:10.4054/DemRes.2018.38.60>.

Authors:Hana Sevcikova [cre, aut], Leontine Alkema [aut], Peiran Liu [aut], Adrian Raftery [aut], Bailey Fosdick [aut], Patrick Gerland [aut]

bayesTFR_7.4-4.tar.gz
bayesTFR_7.4-4.zip(r-4.5)bayesTFR_7.4-4.zip(r-4.4)bayesTFR_7.4-4.zip(r-4.3)
bayesTFR_7.4-4.tgz(r-4.4-x86_64)bayesTFR_7.4-4.tgz(r-4.4-arm64)bayesTFR_7.4-4.tgz(r-4.3-x86_64)bayesTFR_7.4-4.tgz(r-4.3-arm64)
bayesTFR_7.4-4.tar.gz(r-4.5-noble)bayesTFR_7.4-4.tar.gz(r-4.4-noble)
bayesTFR_7.4-4.tgz(r-4.4-emscripten)bayesTFR_7.4-4.tgz(r-4.3-emscripten)
bayesTFR.pdf |bayesTFR.html
bayesTFR/json (API)

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

Peer review:

Datasets:

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

3.02 score 2 stars 3 packages 58 scripts 970 downloads 1 mentions 109 exports 10 dependencies

Last updated 15 days agofrom:0930e752b8. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 09 2024
R-4.5-win-x86_64OKNov 09 2024
R-4.5-linux-x86_64OKNov 09 2024
R-4.4-win-x86_64OKNov 09 2024
R-4.4-mac-x86_64OKNov 09 2024
R-4.4-mac-aarch64OKNov 09 2024
R-4.3-win-x86_64OKNov 09 2024
R-4.3-mac-x86_64OKNov 09 2024
R-4.3-mac-aarch64OKNov 09 2024

Exports:.get.gamma.pars.map.main.defaultavailable.tfr.predictionsbdem.map.gvisbdem.parameter.tracescoda.list.mcmccoda.list.mcmc3coda.mcmccontinue.tfr.mcmccontinue.tfr3.mcmcconvert.tfr.trajectoriescountry.namesDLcurve.plotDLcurve.plot.allget.ar1.parametersget.bias.modelget.countries.indexget.countries.phaseget.countries.tableget.country.objectget.cov.gammasget.data.for.country.imputedget.data.for.worldmapget.data.imputedget.data.matrixget.friendly.variant.namesget.mcmc.listget.mcmc.metaget.mean.from.predictionget.median.from.predictionget.nr.countriesget.nrest.countriesget.projection.summary.headerget.regtfr.predictionget.std.modelget.stored.mcmc.lengthget.tfr.convergenceget.tfr.convergence.allget.tfr.estimationget.tfr.map.parametersget.tfr.mcmcget.tfr.parameter.tracesget.tfr.parameter.traces.csget.tfr.predictionget.tfr.shiftget.tfr.shift.estimationget.tfr.trajectoriesget.tfr3.convergenceget.tfr3.convergence.allget.tfr3.mcmcget.tfr3.parameter.tracesget.tfr3.parameter.traces.csget.thinned.tfr.mcmcget.total.iterationsget.traj.ascii.headerget.UN.variant.nameshas.mcmc.convergedhas.tfr.mcmchas.tfr.predictionhas.tfr3.mcmcpar.names.for.worldmapread.tfr.filerun.tfr.mcmcrun.tfr.mcmc.extrarun.tfr3.mcmctfr.bias.sdtfr.country.dlcurvestfr.diagnosetfr.dl.coveragetfr.estimation.plottfr.get.dlcurvestfr.ggmaptfr.maptfr.map.alltfr.map.gvistfr.mcmctfr.mcmc.listtfr.median.adjusttfr.median.resettfr.median.reset.estimationtfr.median.settfr.median.set.alltfr.median.shifttfr.parameter.namestfr.parameter.names.cstfr.parameter.names.cs.extendedtfr.parameter.names.extendedtfr.pardensity.cs.plottfr.pardensity.plottfr.partraces.cs.plottfr.partraces.plottfr.predicttfr.predict.extratfr.predict.subnattfr.raftery.diagtfr.shift.estimation.to.wpptfr.shift.prediction.to.wpptfr.trajectories.plottfr.trajectories.plot.alltfr.trajectories.tabletfr.world.dlcurvestfr3.diagnosetfr3.parameter.namestfr3.parameter.names.cstfr3.pardensity.cs.plottfr3.pardensity.plottfr3.partraces.cs.plottfr3.partraces.plotwrite.projection.summary

Dependencies:clicodadata.tablegluelatticelifecycleMASSmvtnormrlangwpp2019

Readme and manuals

Help Manual

Help pageTopics
Bayesian Fertility ProjectionbayesTFR-package bayesTFR
MCMC Simulation ObjectbayesTFR.mcmc
MCMC Simulation Meta ObjectbayesTFR.mcmc.meta
Convertion to coda's Objectscoda.list.mcmc coda.list.mcmc3 coda.mcmc coda.mcmc.bayesTFR.mcmc
Converting TFR Trajectories into ACSII Filesconvert.tfr.trajectories
Accessing Country Namescountry.names
Plotting Posterior Distribution of the Double Logistic FunctionDLcurve.plot DLcurve.plot.all tfr.country.dlcurves tfr.world.dlcurves
Accessing Country Informationget.countries.phase get.countries.phase.bayesTFR.mcmc.set get.countries.phase.bayesTFR.prediction get.countries.table get.countries.table.bayesTFR.mcmc.set get.countries.table.bayesTFR.prediction get.country.object
Covariance Matrices of Gamma Parametersget.cov.gammas
Accessing estimated bias and standard deviationsget.bias.model get.std.model tfr.bias.sd
Accessing Subnational Prediction Objectsget.regtfr.prediction
Accessing a Convergence Objectget.tfr.convergence get.tfr.convergence.all get.tfr3.convergence get.tfr3.convergence.all
Get Past TFR Estimationget.tfr.estimation
Accessing MCMC Resultsget.tfr.mcmc get.tfr3.mcmc has.tfr.mcmc has.tfr3.mcmc tfr.mcmc tfr.mcmc.list
Accessing MCMC Parameter Tracesget.tfr.parameter.traces get.tfr.parameter.traces.cs get.tfr3.parameter.traces get.tfr3.parameter.traces.cs
Accessing a Prediction Objectavailable.tfr.predictions get.tfr.prediction has.tfr.prediction
Accessing TFR Trajectoriesget.tfr.trajectories
Creating and Accessing Thinned MCMCscreate.thinned.tfr.mcmc get.thinned.tfr.mcmc
Total Number of Iterationsget.stored.mcmc.length get.total.iterations
Inclusion Codesinclude include_2010 include_2012 include_2015 include_2017 include_2019 include_2022 include_2024
Running Markov Chain Monte Carlo for Parameters of Total Fertility Rate in Phase IIbayesTFR.mcmc.set continue.tfr.mcmc run.tfr.mcmc
Run MCMC for Extra Countries, Areas or Regionsrun.tfr.mcmc.extra
Running Markov Chain Monte Carlo for Parameters of Total Fertility Rate in Phase IIIcontinue.tfr3.mcmc run.tfr3.mcmc
Summary of a TFR Convergence Objectsummary.bayesTFR.convergence
Summary Statistics for TFR Markov Chain Monte Carlo Chainsprint.summary.bayesTFR.mcmc.set print.summary.bayesTFR.mcmc.set.meta summary.bayesTFR.mcmc summary.bayesTFR.mcmc.set
Summary of a Prediction of the Total Fertility Rateprint.summary.bayesTFR.prediction summary.bayesTFR.prediction
Raw TFR DatarawTFR
Convergence Diagnostics of TFR Markov Chain Monte CarlobayesTFR.convergence has.mcmc.converged tfr.diagnose tfr3.diagnose
Goodness of Fit of the Double Logistic Functiontfr.dl.coverage
Plot TFR Estimationtfr.estimation.plot
TFR World Mapget.tfr.map.parameters tfr.ggmap tfr.map tfr.map.all tfr.map.gvis
Editing Medians of the Projectiontfr.median.adjust tfr.median.reset tfr.median.set tfr.median.shift tfr.shift.prediction.to.wpp
Editing median for estimation and projections.tfr.median.reset.estimation tfr.median.set.all tfr.shift.estimation.to.wpp
Accessing Parameter Namestfr.parameter.names tfr.parameter.names.cs tfr.parameter.names.cs.extended tfr.parameter.names.extended tfr3.parameter.names tfr3.parameter.names.cs
Plotting MCMC Parameter Densitytfr.pardensity.cs.plot tfr.pardensity.plot tfr3.pardensity.cs.plot tfr3.pardensity.plot
Plotting MCMC Parameter Tracestfr.partraces.cs.plot tfr.partraces.plot tfr3.partraces.cs.plot tfr3.partraces.plot
Generating Posterior Trajectories of the Total Fertility RatebayesTFR.prediction tfr.predict
Generating Posterior Trajectories of the Total Fertility Rate for Specific Countries or Regionstfr.predict.extra
Generating Posterior Trajectories of Subnational TFRtfr.predict.subnat
Raftery Diagnostics for Parameters of the Total Fertility Ratetfr.raftery.diag tfr3.raftery.diag
Output of Posterior Distribution of TFR Trajectoriestfr.trajectories.plot tfr.trajectories.plot.all tfr.trajectories.table
Dataset with UN-specific Time CodingUN_time
Dataset with UN-specific Coding of VariantsUN_variants
Writing Projection Summary Fileswrite.projection.summary