Skip to content

This is the WinBUGS codes for AMAR paper: https://doi.org/10.1016/j.amar.2025.100387. It includes codes for running Grouped Random Parameters Poisson-Lindley model with spatial effects and other baseline models (e.g., Grouped Random Parameters Poisson-Lindley model).

License

Notifications You must be signed in to change notification settings

UCFLeiHan/Grouped-random-parameters-Poisson-Lindley-model-with-spatial-effects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Grouped Random Parameters Poisson-Lindley Model with Spatial Effects

This repository implements the econometric models presented in:

Wang, C., Abdel-Aty, M., & Han, L. (2025). Grouped random parameters Poisson-Lindley model with spatial effects addressing crashes at intersections: Insights from visual environment features and spatiotemporal instability. Analytic Methods in Accident Research, 100387. https://doi.org/10.1016/j.amar.2025.100387


Overview

These WinBUGS scripts fit the following count-data models (more in Codes):

  • Grouped RPP-Lindley with spatial effects (primary specification in the AMAR paper)
  • Grouped RPP-Lindley (no spatial effects)
  • Grouped RPNB-Lindley (Poisson-Gamma as a reference “NB” specification)

While designed for crash counts at intersections, these routines can be applied to any nonnegative count outcome (e.g., hospital admissions, incident tallies).


Key Features

  • Macro- and micro-level spatial effects via conditional autoregressive (CAR) priors
  • Random parameter (RP) grouping to capture unobserved heterogeneity
  • Lindley mixing distribution for over-dispersion beyond Poisson

Note: The “NB” (negative binomial) implementations here use a Poisson–Gamma mixing representation to ensure direct comparability with Poisson-based specifications. See Geedipally et al. (2014) for guidance on DIC usage in crash models.


Citation

If you use these scripts or adapt them in any form, please cite:

Wang, C., Abdel-Aty, M., & Han, L. (2025). Grouped random parameters Poisson-Lindley model with spatial effects addressing crashes at intersections: Insights from visual environment features and spatiotemporal instability. Analytic Methods in Accident Research, 100387. https://doi.org/10.1016/j.amar.2025.100387


Related Resources


About

This is the WinBUGS codes for AMAR paper: https://doi.org/10.1016/j.amar.2025.100387. It includes codes for running Grouped Random Parameters Poisson-Lindley model with spatial effects and other baseline models (e.g., Grouped Random Parameters Poisson-Lindley model).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages