Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/helske/finpop

A Bayesian reconstruction of a historical population in Finland 1647-1850
https://github.com/helske/finpop

bayesian-inference census finland historical-data missing-values population time-series

Last synced: 6 days ago
JSON representation

A Bayesian reconstruction of a historical population in Finland 1647-1850

Awesome Lists containing this project

README

        

# Data and codes for *Bayesian reconstruction of historical population in Finland 1647-1850*

This repository contains data, model file and scripts for estimating the Finnish population in 1647-1850 as in paper Voutilainen, Helske, Högmander (2020), [A Bayesian reconstruction of a historical population in Finland 1647-1850](https://link.springer.com/article/10.1007/s13524-020-00889-1), Demography.

The final model is defined in file `population_model.stan` and the corresponding `R` script is in `population_model.R`. File `results.R` was used to store necessary data for figures, and it also contains codes for the summary statistics presented in the paper. The codes for drawing the figures are in file `bw_figures.R`. Note that the main output file `fit_population_model.R` from the modelling is not available at Github as the file size is over 80GB. However, the posterior samples of time-invariant hyperparameters are in file `theta.rds`, and the mean estiamtes as well as the limits of the 95% posterior interval are available in files `summary_*.rds` for mean process mu and correction coefficients lambda. Summary of time-invariant hyperparameters theta can be found from `summary_stats.txt`, and bigger versions of the paper figures can be found from files `Fig*_big.pdf`.

![Posterior mean and 95% posterior intervals for Finnish population.](Fig4.svg)