To cite idem in publications use:

Wang C, Colantuoni E, Leroux A, Scharfstein DO (2020). “idem: An R Package for Inferences in Clinical Trials with Death and Missingness.” Journal of Statistical Software, 93(12), 1–35. doi: 10.18637/jss.v093.i12.

Corresponding BibTeX entry:

  @Article{,
    title = {{idem}: An {R} Package for Inferences in Clinical Trials
      with Death and Missingness},
    author = {Chenguang Wang and Elizabeth Colantuoni and Andrew Leroux
      and Daniel O. Scharfstein},
    journal = {Journal of Statistical Software},
    year = {2020},
    volume = {93},
    number = {12},
    pages = {1--35},
    doi = {10.18637/jss.v093.i12},
  }