count canreg data.
count_canreg.Rd
count canreg data.
Usage
count_canreg(
x,
cutage_method = "distance",
smooth_age = "natural",
breaks = c(0, 15, 40, 65),
length = 5,
maxage = 85,
sep_zero = TRUE,
labels = NULL,
label_tail = NULL,
type = "big",
lang = "cn"
)
Arguments
- x
Object data of class 'canreg' or 'canregs'.
- cutage_method
Methods for Specifying Age Groups. Options are "interval", "distance", or "quantile". Default is "distance".
- smooth_age
Methods for expanding age groups from 5 years to 1 year.
- breaks
Specicify the break points classify age groups when cutage_method is 'interval'. Default is 'c(0, 15, 40, 65)'.
- length
Specify the length of each age group when cutage_method is 'distance'. Default is 5.
- maxage
Specify the max age of age group when cutage_method is 'distance'. Default is 85.
- sep_zero
Logical value, TRUE or FALSE, specifying whether to treat age 0 as a separate group. Default is TRUE.
- labels
Labels for age groups. Default is NULL.
- label_tail
Tail label to be added to the labels. Default is NULL.
- type
Method for classify cancer sites.
- lang
Character value for specify the language used. options are 'cn' for Chinese, or 'en' for English.