dg354: Das Gupta equation 3.54. internal function called by dg2pop.

View source: R/dg354.R

dg354R Documentation

Das Gupta equation 3.54. internal function called by dg2pop.

Description

Das Gupta equation 3.54. internal function called by dg2pop.

Usage

dg354(df2, i, pop, factors, id_vars, ratefunction, quietly = TRUE)

Arguments

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

Value

data.frame object including K-a standardised rates for each population for given factor a, along with differences between standardised rates


DasGuptR documentation built on April 11, 2025, 5:56 p.m.