第 33 章 空间数据建模

33.1 西非眼线虫病

loaloa 眼线虫病,人群感染,村庄水平, 响应变量服从二项分布 \(Y \sim b(n,p)\),每个村庄感染的人数 \(Y_i \sim b(n_i, p_i)\) 其中 \(n_i\) 是第 \(i\) 个村庄调查的人数, \(p_i\) 是观测的感染率

data("loaloa", package = "PrevMap")
hcmap(map = "countries/cm/cm-all.js") %>%
  hc_title(text = "喀麦隆及其周边地区眼线虫病流行度")

33.2 运行环境

## R version 4.1.1 (2021-08-10)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 20.04.3 LTS
## 
## Matrix products: default
## BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
## LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0
## 
## locale:
##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
##  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
##  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
##  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
##  [9] LC_ADDRESS=C               LC_TELEPHONE=C            
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
## 
## attached base packages:
## [1] parallel  stats     graphics  grDevices utils     datasets  methods  
## [8] base     
## 
## other attached packages:
## [1] highcharter_0.8.2 leaflet_2.0.4.1   geoR_1.8-1        INLA_21.02.23    
## [5] sp_1.4-5          foreach_1.5.1     Matrix_1.3-4     
## 
## loaded via a namespace (and not attached):
##  [1] Rcpp_1.0.7              lubridate_1.7.10        lattice_0.20-45        
##  [4] tidyr_1.1.4             zoo_1.8-9               assertthat_0.2.1       
##  [7] digest_0.6.28           utf8_1.2.2              R6_2.5.1               
## [10] RandomFields_3.3.10     backports_1.2.1         evaluate_0.14          
## [13] pillar_1.6.3            rlang_0.4.11            curl_4.3.2             
## [16] data.table_1.14.2       TTR_0.24.2              jquerylib_0.1.4        
## [19] rmarkdown_2.11          splines_4.1.1           stringr_1.4.0          
## [22] htmlwidgets_1.5.4       igraph_1.2.6            broom_0.7.9            
## [25] compiler_4.1.1          xfun_0.26               pkgconfig_2.0.3        
## [28] htmltools_0.5.2         tcltk_4.1.1             downlit_0.2.1          
## [31] tidyselect_1.1.1        tibble_3.1.5            bookdown_0.24          
## [34] codetools_0.2-18        fansi_0.5.0             crayon_1.4.1           
## [37] dplyr_1.0.7             MASS_7.3-54             grid_4.1.1             
## [40] jsonlite_1.7.2          lifecycle_1.0.1         DBI_1.1.1              
## [43] magrittr_2.0.1          rlist_0.4.6.2           quantmod_0.4.18        
## [46] stringi_1.7.4           fs_1.5.0                xml2_1.3.2             
## [49] bslib_0.3.0             xts_0.12.1              ellipsis_0.3.2         
## [52] generics_0.1.0          vctrs_0.3.8             iterators_1.0.13       
## [55] tools_4.1.1             glue_1.4.2              purrr_0.3.4            
## [58] splancs_2.01-42         crosstalk_1.1.1         fastmap_1.1.0          
## [61] yaml_2.2.1              knitr_1.36              RandomFieldsUtils_0.5.4
## [64] sass_0.4.0