| rename.age.grps | R Documentation |
Some databases may have 5 year age groups as -4, -9, -14, ... meaning 0-4, 5-9, 10-14, ....
However, the dbRake function requires depends on age group column names as 'X-Y'.
This is a helper function used in dbRake.
rename.age.grps(data, VarRegion, VarSex)
data |
A dataset with -X1, -X2, -X3, ... column names |
VarRegion |
Name of Region variable in all files (e.g., "LHA") |
VarSex |
Name of Sex variable in all files (e.g., "Sex") |
data with X-Y col names
The overall raking function: dbRake()
Other raking helpers:
add.random.fraction.to.cols(),
adjustSex(),
allowNegsnoMargin(),
calc.cols(),
multiRake(),
noNegsneedMargin(),
noNegsnoMargin(),
prep.prorate.col(),
prorate.col(),
prorate.row(),
prorate(),
read.inputs(),
real.to.int(),
rounded()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.