dg354 | R Documentation |
Das Gupta equation 3.54. internal function called by dg2pop.
dg354(df2, i, pop, factors, id_vars, ratefunction, quietly = TRUE)
df2 |
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 |
i |
the index of the factors vector which is not being adjusted for (the alpha in "P-alpha standardised rates") |
pop |
name (character string) of variable indicating population |
factors |
names (character vector) of variables indicating compositional factors |
id_vars |
character vector of variables indicating sub-populations |
ratefunction |
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. |
quietly |
logical indicating whether interim messages should be outputted indicating progress |
data.frame object including K-a standardised rates for each population for given factor a, along with differences between standardised rates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.