Code + simulated + publically accessable data for "Evaluating health facility access using Bayesian spatial models and location analysis methods"
Description
# README
These files contain r data objects and R files that represent the key details of the paper, "Evaluating health facility access using Bayesian spatial models and location analysis methods".
The following datasources are available for simulation of some of the ideas in the paper.
- dat_grid_sim: simulated data of the grid and grid cells
- dat_ohca_cv_sim: simulated data containing the cross validated test/training sets of OHCA data
- dat_ohca_sim: simulated OHCA event data
- dat_aed_sim: simulated AED location data
- dat_bldg_sim: simulated building location data
- dat_municipality_sim: simulated municipality information
- table_1: Table 1 information containing key demographic data
These data were produced using the code in 01-create-sim-data.R, and one of the statistical models is demonstrated in 02-demo-inla-model.R
In terms of the paper itself, the functions and code used in the manuscript are located in:
* 01_tidy.Rmd - analysis code used to tidy up the data
* 02_fit_fixed_all_cv.Rmd - analysis code used to place AEDs
* 02_model.Rmd - analysis code used to fit the model in INLA
* 03_manuscript.Rmd - Full code and text used to create the paper
* 04_supp_materials.Rmd - full code and text used to create the supplementary materials
The following files are a part of an R package "swatial" that was developed along with the paper. These files are:
* DESCRIPTION
* NAMESPACE
* LICENSE
* LICENSE.md
* decay.R
* spherical-distance.R
* test-figure-data-matches.R
* test-table-data-matches.R
* testthat.R
* tidy-inla.R
* tidy-posterior-coefs.R
* tidy-predictions.R
* utils-pipe.R
* All files that end in .Rd are documentation files for the functions.
## Regarding data sources
Census information for Ticino was transcribed from the Annual Statistical Report of Canton Ticino from years 2010 to 2015. This data was taken from their publicly accessible annual reports - for example: (https://www3.ti.ch/DFE/DR/USTAT/allegati/volume/ast_2015.pdf). The raw data was extracted from these annual reports, and placed into the file: "swiss_census_popn_2010_2015.xlsx". These data are put into analysis ready format in the file “01_tidy.Rmd”
Housing and other relevant geospatial data can be accessed via http://map.housing-stat.ch/ and https://data.geo.admin.ch/. The maps of buildings from the REA (Register of Buildings and Dwellings) can be found here: https://map.geo.admin.ch/?zoom=11&bgLayer=ch.swisstopo.pixelkarte-grau&lang=en&topic=ech&layers=ch.bfs.gebaeude_wohnungs_register,ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill,ch.bfs.volkszaehlung-gebaeudestatistik_gebaeude,ch.bfs.volkszaehlung-gebaeudestatistik_wohnungen,ch.swisstopo.swissbuildings3d_1.metadata,ch.swisstopo.swissbuildings3d_2.metadata&E=2717616.28&N=1096597.25&catalogNodes=687,696&layers_timestamp=,,2016,2016,,&layers_visibility=true,false,false,false,false,false&layers_opacity=1,1,1,1,1,0.75
For further enquiries on this data, contact the Swiss federal Office of Statistics at the details listed here: https://www.bfs.admin.ch/bfs/en/home/services/contact.html
The shapefiles of the Comuni can be accessed here: https://www4.ti.ch/dfe/de/ucr/documentazione/download-file/?noMobile=1
Data from the people living in the Municipalities in Ticino can be downloaded here: https://www3.ti.ch/DFE/DR/USTAT/index.php?fuseaction=dati.home&tema=33&id2=61&id3=65&c1=01&c2=02&c3=02
## Future work
In the future, these functions from the paper may be generalised and put into their own package. If that happens, this repository will be updated with a link to updated functions.
Files
LICENSE.md
Files
(2.8 MB)
Name | Size | Download all |
---|---|---|
md5:191acc263f1c50632321dbdbd44aef8a
|
9.4 kB | Download |
md5:e6c76d8cb83bc44e91b036d0feefa903
|
25.0 kB | Download |
md5:e85328fff2ca3d4ee11fe83c88e81549
|
1.2 kB | Download |
md5:45108054cd5508ae261fed1083d5e151
|
3.7 kB | Download |
md5:f909bb54b183af02dadd14aa128e783e
|
7.4 kB | Download |
md5:3615bc84ff68a5ce38968af2532433eb
|
71.9 kB | Download |
md5:73850c5c1675c17a24db44856001b5dd
|
14.0 kB | Download |
md5:fd02bf22ad3f3019eed10d366c49259f
|
5.2 kB | Download |
md5:d6121718125532faabd3223f65460c90
|
4.8 kB | Download |
md5:2422641bdd8146211f19274b4dffdc4d
|
1.9 MB | Download |
md5:d4a41128d676687d817a91609e15d654
|
5.6 kB | Download |
md5:1468766155f50d8968ea2c7cd7aefcaf
|
27.3 kB | Download |
md5:80814598ba62f662edc34eead01dcf80
|
5.2 kB | Download |
md5:f62840664f9efa04dd3055140ef05789
|
1.7 kB | Download |
md5:88da81c5a588c4c9e208d809cef99c71
|
2.0 kB | Download |
md5:b3e98e15ee68b1c160f9359c9ace9b7f
|
496 Bytes | Download |
md5:60acf06ee974f9666a7f52d55d8e09e5
|
46 Bytes | Download |
md5:07e09c6e8c34c4eb0a7b16c6a9167929
|
1.1 kB | Preview Download |
md5:180a89cfd3dc8cd4c584f5486ce985f5
|
266 Bytes | Download |
md5:e3141886a56ec55a93db34385d75ec66
|
46.4 kB | Download |
md5:1f7896a1b866ff9ae89ba35be7c7b6f1
|
256 Bytes | Download |
md5:0e13e016020eaa78bf5fdd8fbc46e792
|
15.3 kB | Preview Download |
md5:732efbee54b10a3a853e9f9643c0588e
|
283.2 kB | Download |
md5:622aa5e1029850ef6bd2cd441a7df964
|
10.3 kB | Download |
md5:d930dedf770aee9ff43215022a5ebf65
|
3.6 kB | Preview Download |
md5:c01cb47356b3d2c1f96cb964dafb362e
|
397 Bytes | Download |
md5:d6ee643ca2c361254bf81c0e6381cbf3
|
1.7 kB | Download |
md5:5d5a7e220161f64482af422d2f2f37b2
|
1.1 kB | Download |
md5:37ed1b920cee5326d75a08587be2776f
|
640 Bytes | Download |
md5:725562784f137cdef9731586af66921c
|
228 Bytes | Download |
md5:984bfc4a1868f56715ca976073b27c9c
|
395.9 kB | Download |
md5:a0d9ced98c5593bb779ee6d4e5599bdc
|
340 Bytes | Download |
md5:66ea47c8076ff22557a5fd0ff6346572
|
1.7 kB | Download |
md5:53d3abf2f0931bc6b6690a861984e7f9
|
1.6 kB | Download |
md5:69a416d81c2ad3804265e65da99c120d
|
58 Bytes | Download |
md5:004c156c1a3dbe1867692d967678e48e
|
442 Bytes | Download |
md5:9e45955b343cac576b110d244eb4be36
|
2.0 kB | Download |
md5:5afcec2d60bedfd712495aeda06255cf
|
497 Bytes | Download |
md5:79950c39347185c300ed2c53eb990a7d
|
432 Bytes | Download |
md5:48b9110c826000eba247c284e0b8e8d7
|
615 Bytes | Download |
md5:093fa0a09ff079f3b784d0f0c963bc0f
|
391 Bytes | Download |
md5:38e62da8727abbbc5e626d42d5d5b237
|
258 Bytes | Download |