Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/helske/finpop
- Owner: helske
- Created: 2019-09-06T12:31:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-28T10:51:52.000Z (almost 4 years ago)
- Last Synced: 2024-10-29T09:18:59.699Z (about 2 months ago)
- Topics: bayesian-inference, census, finland, historical-data, missing-values, population, time-series
- Language: R
- Homepage:
- Size: 75.7 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)