Mossong et al. (2008)
Prem, Cook, and Jit (2017)
Prem et al. (2020)
Install development version from GitHub.
# install.packages("remotes")
remotes::install_github("myangstat/socialcontact")
Load the package into R.
library(socialcontact)
contacts2$country
## code name
## 1: ALB Albania
## 2: DZA Algeria
## 3: AND Andorra
## 4: ATG Antigua & Barbuda
## 5: ARG Argentina
## ---
## 148: VEN Venezuela
## 149: VNM Vietnam
## 150: YEM Yemen
## 151: ZMB Zambia
## 152: ZWE Zimbabwe
str(contacts2$contacts$CHN)
## List of 5
## $ home : num [1:16, 1:16] 0.0742 0.1685 0.1758 0.079 0.3069 ...
## $ work : num [1:16, 1:16] 0 0 0 0 0 0 0 0 0 0 ...
## $ school: num [1:16, 1:16] 6.44e-02 1.08e-02 9.12e-05 5.20e-04 1.44e-03 ...
## $ others: num [1:16, 1:16] 0.7154 0.3353 0.1073 0.0737 0.1302 ...
## $ all : num [1:16, 1:16] 0.854 0.515 0.283 0.153 0.439 ...
contacts2$contacts$CHN$all
## [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8]
## [1,] 0.85392712 0.50557256 0.29971099 0.19328041 0.35948336 0.63725987 0.6914754 0.7207420
## [2,] 0.51460146 2.32585497 0.67268691 0.27317668 0.20375291 0.36753313 0.7404596 1.0234261
## [3,] 0.28323254 1.06063540 3.35694230 0.74003199 0.39063822 0.27621772 0.4945936 0.8329276
## [4,] 0.15318734 0.34048063 1.76527010 6.11336781 1.85972106 0.79124274 0.5793567 0.8298388
## [5,] 0.43854535 0.22720469 0.38899726 2.66474304 5.08830960 2.50444290 1.3921431 1.2628971
## [6,] 0.79012096 0.33100101 0.18441258 0.77168494 2.35025549 3.15923010 1.9636379 1.5768317
## [7,] 0.57478011 0.79007753 0.62258186 0.41509992 1.17467459 1.71923891 2.3458735 1.9510463
## [8,] 0.51098445 0.79624755 0.84155841 0.78076941 0.88670059 1.50713423 1.8079247 2.7343011
## [9,] 0.24793599 0.41490974 0.73709325 1.26010409 1.26115741 1.34144915 1.6817572 2.1191707
## [10,] 0.10617551 0.27356669 0.44616088 1.01680480 1.32269196 1.19275962 1.2585176 1.4478430
## [11,] 0.17698713 0.19674990 0.28889249 0.56333731 0.91729918 1.33626375 1.0700220 1.0963841
## [12,] 0.15021328 0.26247867 0.22257080 0.36875144 0.65806651 1.07847116 1.2437330 1.1223510
## [13,] 0.11620162 0.12133675 0.09087076 0.18880278 0.34963393 0.53407775 0.5826001 0.7647057
## [14,] 0.07460803 0.07914122 0.05769745 0.05755148 0.19611420 0.24999280 0.3261198 0.4584376
## [15,] 0.02567550 0.05326242 0.09455166 0.13232039 0.13321065 0.15744297 0.1658684 0.2813765
## [16,] 0.03836691 0.04067587 0.05496536 0.03857790 0.06424181 0.08089722 0.1515012 0.1502518
## [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16]
## [1,] 0.4476289 0.2427835 0.2332316 0.3270374 0.14457264 0.11699195 0.05357597 0.02494994
## [2,] 0.6771983 0.2163312 0.1232302 0.2627246 0.14214079 0.10289826 0.09507424 0.02444113
## [3,] 0.8621333 0.4660547 0.1951664 0.1370054 0.10610421 0.10384455 0.10909713 0.03307429
## [4,] 1.1895389 1.0578968 0.4452925 0.2501693 0.11743720 0.08818630 0.04461692 0.04030892
## [5,] 1.4033651 1.5285181 0.8431061 0.6237806 0.15581890 0.08802531 0.05105673 0.03979087
## [6,] 1.3378293 1.1014932 1.0157259 0.5795912 0.24584656 0.07227625 0.04855982 0.03265255
## [7,] 1.4571775 1.0913908 0.7666314 0.6490279 0.36463402 0.07523134 0.04871196 0.03116153
## [8,] 2.1792904 1.3599827 0.8536065 0.6035346 0.37131898 0.16574292 0.22028514 0.07187892
## [9,] 2.7006649 1.9356474 1.0975807 0.4715509 0.28029376 0.27344437 0.18314083 0.12954638
## [10,] 1.6438192 1.8490070 1.2521634 0.5270033 0.21167257 0.11346063 0.12858809 0.04795956
## [11,] 1.5320453 1.4913849 1.1794459 0.7706584 0.22869036 0.10008666 0.04396887 0.02935664
## [12,] 1.2331623 0.9092184 0.9465359 1.1429605 0.53819068 0.17571389 0.07246835 0.03903960
## [13,] 0.6919347 0.5736871 0.4095733 0.5667322 0.44671197 0.25793046 0.16594184 0.04831119
## [14,] 0.3740728 0.2668366 0.1931908 0.2994004 0.31664773 0.32736058 0.19399149 0.06836310
## [15,] 0.3401138 0.2521658 0.1342158 0.1811956 0.26120605 0.22269329 0.23258593 0.17508715
## [16,] 0.1639864 0.1863301 0.1402924 0.1122120 0.09335018 0.10367139 0.12418402 0.05430915
Mossong, Joël, Niel Hens, Mark Jit, Philippe Beutels, Kari Auranen, Rafael Mikolajczyk, Marco Massari, et al. 2008. “Social Contacts and Mixing Patterns Relevant to the Spread of Infectious Diseases.” PLoS Medicine 5 (3): e74. https://doi.org/10.1371/journal.pmed.0050074.
Prem, Kiesha, Alex R. Cook, and Mark Jit. 2017. “Projecting Social Contact Matrices in 152 Countries Using Contact Surveys and Demographic Data.” PLoS Computational Biology 13 (9): e1005697. https://doi.org/10.1371/journal.pcbi.1005697.
Prem, Kiesha, Yang Liu, Timothy W Russell, Adam J Kucharski, Rosalind M Eggo, Nicholas Davies, Mark Jit, and Petra Klepac. 2020. “The Effect of Control Strategies to Reduce Social Mixing on Outcomes of the Covid-19 Epidemic in Wuhan, China: A Modelling Study.” Lancet 5 (5): e261–e270. https://doi.org/10.1016/S2468-2667(20)30073-6.