A Hierarchical Gravity Model with Spatial Correlation: Mathematical Formulation and Parameter Estimation · Study