Skip to contents

Registry objects and data preparation

as_canreg()
Construct a canreg object
read_canreg()
Read cancer registration data
as_fbswicd()
Construct fbswicd objects from summary data frames
count_canreg()
Count and classify canreg data
cr_clean()
Clean canreg data.
cr_combine()
Combine cancer registry collections
cr_filter()
Filter rows from canregtools objects
cr_merge()
Merge elements from objects of class canregs, fbswicds, or asrs
cr_map()
Set registry grouping mappings for cr_reframe
cr_reframe()
Reframe data of class canregs or fbswicds
cr_rename()
Rename registries in a registry collection
cr_select()
Select elements from objects with class "canregs", or "fbswicds"
esti_fbswicd()
Estimate object of fbswicd
esti_pop()
Estimating population structure using interpolation method.
get_pop()
Subset or summarize population data

Validation

validate_cases() validate_population() validate_canreg() validate_fbswicd()
Validate cancer registry data
is_valid_canreg()
Test whether a validation result contains no errors
validate_canreg_report()
Validate a canreg_report object

Age splitting and rates

calc_age()
Calculate the actual age in completed years between two dates
ageadjust()
Calculate the age standardized rate using the direct method
benchmark_age_split()
Blindly benchmark age-splitting methods against a single-age schedule
create_age_rate()
Calculate age specific rate
create_asr()
Calculate age-standardized rate (ASR)
cumrate()
Calculate the cumulative incidence or mortality rate
cumrisk()
Calculate the cumulative risk
cutage()
Group ages into categories
expand_age_pop()
Expand grouped population to single-year ages while preserving an open group
expand_open_age_pop()
Expand one open-ended population age group
expand_lx()
Expand a five-year abridged life table to a complete life table
get_stdpop()
Get standardized population data
truncrate()
Calculate truncated age standardized rate

Quality and statistical comparisons

create_quality()
Calculate quality indicators
compare_mi()
Compare mortality-to-incidence ratios across registries
compare_mv()
Compare morphologically verified percentages across registries
compare_rate()
Compare incidence or mortality rates
cr_test()
Run cancer-registry quality tests
detect_anomaly()
Detect unusual annual rates or quality indicators
create_site_morp()
Count ICD-10 site and morphology groups by strata

Classification and labels

add_labels()
Add variable labels for data set.
add_var_labels()
Add Variable Labels with Units
calc_ax()
Calculate ax for life table
classify_areacode()
Classify codes for the administrative divisions of China
classify_childhood()
Classify childhood cancer according to the ICCC3 standards
classify_icd10()
Classify ICD10 codes to cancer categories
classify_morp()
Classify ICD-O-3 morphology codes into categories
classify_topo()
Classify ICD-O-3 topography codes into categories
combine_tp()
Sum named numeric vectors
drop_others()
Drop “other” cancer codes
drop_total()
Drop the total cancer
tidy_age()
Tidy age description
tidy_sex()
Tidy gender variable
tidy_var()
Reformat variable values for Cancer Registration in China

Reports and visualization

create_canreg_report_data()
Create a standardized cancer registry report data object
create_report()
Render standardized cancer registry reports from built-in templates
new_canreg_report()
Construct a canreg_report object
draw_barchart()
Draw Grouped Bar Charts with Facets
draw_dumbbell()
Plot dumbbell chart
draw_linechart()
Draw a Custom Line Chart Using Base R
draw_pyramid()
Plot a population pyramid

Dictionaries and utilities

del_dict_files()
Delete a dictionary file from canregtools config
ls_attrs()
list built-in attributes name used in cr_reframe()
ls_dict()
list dictionary used in package
ls_dict_files()
List dictionary files used by canregtools
ls_vars()
List variable names and their descriptions by category
reset_dict()
Reset user dictionary overrides
lt()
Construct a life table from age-specific mortality rates
write_regicode()
Write custom registry identifier labels to dictionary
write_registry()
Write registry attributes to a user-defined dictionary

Data

canregs
Example Population-Based Cancer Registry Data (canregs)
ci5_xii_china
CI5-XII China reference data for registry comparisons
quality
Quality Indicators from the China Cancer Registry Annual Report

Summary methods

summary(<canreg>) summary(<canregs>)
Summary object of class 'canreg'