Das Gupta equation 3.54. internal function called by dg2pop.
dg354(df2, i, pop, factors, id_vars, ratefunction, quietly = TRUE)
data.frame object including K-a standardised rates for each population for given factor a, along with differences between standardised rates
list of 2 population dataframes, in which each one contains data for all factors for the relevant population, along with variables indicating population and subpopulations
the index of the factors vector which is not being adjusted for (the alpha in "P-alpha standardised rates")
name (character string) of variable indicating population
names (character vector) of variables indicating compositional factors
character vector of variables indicating sub-populations
user defined character string in R syntax that when evaluated specifies the function defining the rate as a function of factors. if NULL then will assume rate is the product of all factors.
logical indicating whether interim messages should be outputted indicating progress