To cite package 'p2distance' in publications use:

Pérez-Luque A, Moreno R, Pérez-Pérez R, Bonet-García F (2012). p2distance: Welfare's Synthetic Indicator. R package version 1.0.2, https://CRAN.R-project.org/package=p2distance.

Corresponding BibTeX entry:

  @Manual{,
    title = {p2distance: Welfare's Synthetic Indicator},
    author = {Antonio J. Pérez-Luque and Ricardo Moreno and Ramón
      Pérez-Pérez and Francisco J. Bonet-García},
    year = {2012},
    note = {R package version 1.0.2},
    url = {https://CRAN.R-project.org/package=p2distance},
  }