R: Das Gupta Standardisation and Decomposition

# Das Gupta Standardisation and Decomposition

## Documentation for package ‘DasGuptR’ version 2.1.0

- DESCRIPTION file
- User guides, package vignettes and other documentation
- Package NEWS
- Package README

## Help Pages

ccwrap | Wrapper for cross-classified data that standardises rates across a pair of populations. Because these are (r+r')/2 * Q(a_i), this requires 1) doing the rate standardisation on each sub-population, 2) performing the standardisation on the cross classified structure variables, 3) multiplying and (optionally) aggregating up
dg2pop | Standardisation and decomposition of rates over K rate-factors and 2 populations. We suggest using dgnpop, which will internally call this function.
dg354 | Das Gupta equation 3.54. internal function called by dg2pop.
dg611 | Das Gupta equation 6.11: Standardises rates across populations
dg612 | Das Gupta equation 6.12 for a differences between 2 populations when standardised across N populations.
dgcc | Das Gupta equation 5.36 across N populations: Decomposes cross-classified population structures into a set of symmetric proportions indicating contribution of individual structural variables.
dgnpop | Prithwis Das Gupta's 1993 standardisation and decomposition of rates over K rate-factors and N populations.
dg_plot | Creates a plot of Das Gupta standardised rates across the set of populations
dg_table | Creates a small table of Das Gupta standardised rates. If no populations are specified, rates will be shown for all available populations. If only two populations (or if two particular populations are specified), then rate-differences and 'decomposition effects' are calculated and presented.
reconv | Scottish Reconvictions data 2004-2016
split_popstr | Das Gupta equation 5.36 for a single population: Decomposes cross-classified population structures into a set of symmetric proportions indicating contribution of individual structural variables.
uspop | US population data 1940-1990