R code used in the following publication:
Lin, J.C., Bares, R., Fasoli, B. et al. Declining methane emissions and steady, high leakage rates observed over multiple years in a western US oil/gas production basin. Sci Rep 11, 22291 (2021). https://doi.org/10.1038/s41598-021-01721-5