Package: DasGuptR
Type: Package
Title: Das Gupta Standardisation and Decomposition
Version: 2.2.0
Date: 2026-08-04
Authors@R: c(person(given = "Josiah",
                      family = "King",
                      role = c("aut", "cre"),
                      email = "josiah.king@ed.ac.uk"),
               person(given = "Ben",
                      family = "Matthews",
                      role = "aut"),
               person(given = "Prithwis",
                      family = "Das Gupta",
                      role = "aut"))
Maintainer: Josiah King <josiah.king@ed.ac.uk>
Description: Implementation of Das Gupta's standardisation and decomposition of population rates, as set out "Standardization and decomposition of rates: A user’s manual", Das Gupta (1993) <https://www2.census.gov/library/publications/1993/demographics/p23-186.pdf>. The goal of these methods is to calculate adjusted rates based on compositional 'factors' and quantify the contribution of each factor to the difference in crude rates between populations. The package offers functionality to handle various scenarios for any number of factors and populations, where said factors can be comprised of vectors across sub-populations (including cross-classified population breakdowns), and with the option to specify user-defined rate functions.  
License: GPL (>= 3)
URL: https://github.com/josiahpjking/DasGuptR
BugReports: https://github.com/josiahpjking/DasGuptR/issues
Depends: R (>= 4.1.0)
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.3.3
Suggests: R.rsp, testthat (>= 3.0.0)
VignetteBuilder: R.rsp
Config/testthat/edition: 3
NeedsCompilation: no
Packaged: 2026-08-04 14:43:54 UTC; jking34
Author: Josiah King [aut, cre],
  Ben Matthews [aut],
  Prithwis Das Gupta [aut]
Repository: CRAN
Date/Publication: 2026-08-04 17:10:15 UTC
Built: R 4.7.0; ; 2026-08-10 23:52:47 UTC; windows
