R syntax to fit the digraph model
datasetposted on 25.11.2019 by Tim K. Tsang, Vicky J. Fang, Dennis K. M. Ip, Ranawaka A. P. M. Perera, Hau Chi So, Gabriel M. Leung, J. S. Malik Peiris, Benjamin J. Cowling, Simon Cauchemez
Datasets usually provide raw data for analysis. This raw data often comes in spreadsheet form, but can be any collection of data, on which analysis can be performed.
R syntax to fit the digraph model on the household data. This will create a data file [mcmc_result.csv] for further analysis. Noted that Supplementary Table 5 was also generated from this file.