To cite dynamichazard in publications use:

Christoffersen B (2021). “dynamichazard: Dynamic Hazard Models Using State Space Models.” Journal of Statistical Software, 99(7), 1–38. doi: 10.18637/jss.v099.i07.

Corresponding BibTeX entry:

  @Article{,
    title = {{dynamichazard}: Dynamic Hazard Models Using State Space
      Models},
    author = {Benjamin Christoffersen},
    journal = {Journal of Statistical Software},
    year = {2021},
    volume = {99},
    number = {7},
    pages = {1--38},
    doi = {10.18637/jss.v099.i07},
  }