# Das Gupta Standardisation and Decomposition

## Documentation for package ‘DasGuptR’ version 2.2.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.
dgeg2_1 | Das Gupta Example 2.1
dgeg2_2 | Das Gupta Example 2.2
dgeg2_3 | Das Gupta Example 2.3
dgeg2_4 | Das Gupta Example 2.4
dgeg3_1 | Das Gupta Example 3.1
dgeg4_1 | Das Gupta Example 4.1
dgeg4_3 | Das Gupta Example 4.3
dgeg4_4 | Das Gupta Example 4.4
dgeg5_1 | Das Gupta Example 5.1
dgeg5_3 | Das Gupta Example 5.3
dgeg6_5 | Das Gupta Example 6.5
dgeg6_6 | Das Gupta Example 6.6: US Population Birth Rates
dgnpop | Prithwis Das Gupta's 1993 standardisation and decomposition of rates over K rate-factors and N populations.
dg_check | Performs some initial checks of the input data for dgnpop(), providing messages where issues are flagged
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.