Data + Code for "Evaluating health facility access using Bayesian spatial models and location analysis methods"
收藏资源简介:
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. 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. 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文件演示了其中一种统计模型的实现。 就本论文相关的代码与函数而言,稿件中使用的分析代码与函数存放于如下路径: * 01_tidy.Rmd:用于数据清洗的分析代码 * 02_fit_fixed_all_cv.Rmd:用于自动体外除颤器布局优化的分析代码 * 02_model.Rmd:用于实现INLA(Integrated Nested Laplace Approximations,集成嵌套拉普拉斯近似)模型拟合的分析代码 * 03_manuscript.Rmd:用于生成完整论文的代码与文本内容 * 04_supp_materials.Rmd:用于生成论文补充材料的完整代码与文本内容 下述文件为随本论文同步开发的R包"swatial"的组成部分,具体包括: * DESCRIPTION:R包描述文件 * NAMESPACE:R包命名空间配置文件 * LICENSE、LICENSE.md:许可证文件 * decay.R:衰减分析脚本 * spherical-distance.R:球面距离计算脚本 * test-figure-data-matches.R:绘图数据匹配测试脚本 * test-table-data-matches.R:表格数据匹配测试脚本 * testthat.R:testthat测试框架启动脚本 * tidy-inla.R:INLA结果清洗脚本 * tidy-posterior-coefs.R:后验系数清洗脚本 * tidy-predictions.R:预测结果清洗脚本 * utils-pipe.R:管道工具函数脚本 * 所有以.Rd为后缀的文件均为对应函数的官方文档。 未来,本论文中使用的相关函数或将被泛化并封装为独立的R包。若完成封装,本仓库将同步更新以指向更新后的函数包链接。



