Code + simulated + publically accessable data for "Evaluating health facility access using Bayesian spatial models and location analysis methods"
收藏资源简介:
# 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<br> - dat_ohca_cv_sim: simulated data containing the cross validated test/training sets of OHCA data<br> - dat_ohca_sim: simulated OHCA event data<br> - dat_aed_sim: simulated AED location data<br> - dat_bldg_sim: simulated building location data<br> - dat_municipality_sim: simulated municipality information<br> - 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.
# 数据集说明 本仓库包含与论文《基于贝叶斯空间模型与位置分析方法评估医疗设施可达性》核心细节相关的R数据对象与R脚本文件。 本项目提供若干数据源,用于复现论文中的部分仿真研究思路: - `dat_grid_sim`:网格与网格单元的仿真数据 - `dat_ohca_cv_sim`:包含院外心脏骤停(OHCA, Out-of-Hospital Cardiac Arrest)数据交叉验证训练/测试集的仿真数据 - `dat_ohca_sim`:院外心脏骤停(OHCA)事件仿真数据 - `dat_aed_sim`:自动体外除颤器(AED, Automated External Defibrillator)位置仿真数据 - `dat_bldg_sim`:建筑位置仿真数据 - `dat_municipality_sim`:自治市仿真信息 - `table_1`:包含核心人口统计数据的表1信息 所有仿真数据均通过`01-create-sim-data.R`中的代码生成,其中一款统计模型的演示代码见`02-demo-inla-model.R`。 关于论文本身,手稿中使用的函数与代码文件如下: * `01_tidy.Rmd`:用于数据整理的分析代码 * `02_fit_fixed_all_cv.Rmd`:用于自动体外除颤器(AED)布局配置的分析代码 * `02_model.Rmd`:用于运行INLA模型的分析代码 * `03_manuscript.Rmd`:用于生成完整论文的代码与文本内容 * `04_supp_materials.Rmd`:用于生成补充材料的完整代码与文本内容 以下文件属于本论文配套开发的R包`swatial`: * `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` * 所有以`.Rd`结尾的文件均为函数文档文件 ## 数据源说明 提契诺州的人口普查数据转录自2010至2015年《提契诺州年度统计报告》,该数据取自其公开可获取的年度报告,例如:(https://www3.ti.ch/DFE/DR/USTAT/allegati/volume/ast_2015.pdf)。原始数据从上述年度报告中提取,并存储于文件`swiss_census_popn_2010_2015.xlsx`,相关数据将在`01_tidy.Rmd`中整理为可直接用于分析的格式。 住房及其他相关地理空间数据可通过http://map.housing-stat.ch/与https://data.geo.admin.ch/获取。建筑与住宅登记簿(REA, Register of Buildings and Dwellings)中的建筑地图可在此处查询: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=68,696&layers_timestamp=,,2016,2016,,&layers_visibility=true,false,false,false,false,false&layers_opacity=1,1,1,1,1,0.75 如需进一步咨询此类数据,请通过https://www.bfs.admin.ch/bfs/en/home/services/contact.html 所列联系方式联系瑞士联邦统计局。 意大利自治市(Comuni)的形状文件可在此处获取:https://www4.ti.ch/dfe/de/ucr/documentazione/download-file/?noMobile=1 提契诺州各自治市的居民数据可在此下载:https://www3.ti.ch/DFE/DR/USTAT/index.php?fuseaction=dati.home&tema=33&id2=61&id3=65&c1=01&c2=02&c3=02 ## 未来工作 未来可将本论文中的相关函数进行泛化并封装为独立R包。若完成该工作,本仓库将更新指向更新后函数的链接。



