Calculate age-standardized rate.
create_asr.fbswicd.Rd
Calculate age-standardized rate.
Usage
# S3 method for fbswicd
create_asr(
x,
...,
event = fbs,
pop = rks,
agegrp = agegrp,
std = c(china, segi),
mp = 1e+05,
decimal = 2,
show_var = FALSE,
show_ci = FALSE,
keep_sex_specific = FALSE
)
Arguments
- x
data with class of fbswicd.
- ...
Stratification factors.
- event
A variable within the input data that corresponds to the cases counts.
- pop
A variable within the input data that corresponds to the population in risk in each stratification.
- agegrp
A variable within the input data that corresponds to the age categories.
- std
Specify the standard population structure in the 'std_pop' data frame used for calculating standardized rates. When calculating standardized rates for multiple standard populations, specify std = c("segi", "china").
- mp
A constant to multiply rates by (e.g. mp=1000 for rates per 1000).
- decimal
This parameter specifies the number of decimal places to round the results. The default is 2, which means rates will be rounded to two decimal places.
- show_var
Logical value whether output variance or not.
- show_ci
Logical value whether output confidence(lower or upper bound) or not.
- keep_sex_specific
deal with sex specific disease.