To cite hdpGLM in publications use:

Ferrari D (2019). “Hierarchial Dirichlet Process Generalized Linear Mixed Model (hdpGLM).” Political Analysis. https://doi.org/10.1017/pan.2019.13.

Corresponding BibTeX entry:

  @Article{,
    title = {Hierarchial Dirichlet Process Generalized Linear Mixed
      Model (hdpGLM)},
    author = {Diogo Ferrari},
    journal = {Political Analysis},
    year = {2019},
    url = {https://doi.org/10.1017/pan.2019.13},
  }