To cite hdpGLM in publications use:

Ferrari D (2023). “hdpGLM: An R Package to Estimate Heterogeneous Effects in Generalized Linear Models Using Hierarchical Dirichlet Process.” Journal of Statistical Software, 107(10), 1–37. doi:10.18637/jss.v107.i10.

Corresponding BibTeX entry:

  @Article{,
    title = {{hdpGLM}: An {R} Package to Estimate Heterogeneous Effects
      in Generalized Linear Models Using Hierarchical {D}irichlet
      Process},
    author = {Diogo Ferrari},
    journal = {Journal of Statistical Software},
    year = {2023},
    volume = {107},
    number = {10},
    pages = {1--37},
    doi = {10.18637/jss.v107.i10},
  }