Package: cellKey 1.0.2
cellKey: Consistent Perturbation of Statistical Frequency- And Magnitude Tables
Data from statistical agencies and other institutions often need to be protected before they can be published. This package can be used to perturb statistical tables in a consistent way. The main idea is to add - at the micro data level - a record key for each unit. Based on these keys, for any cell in a statistical table a cell key is computed as a function on the record keys contributing to a specific cell. Values that are added to the cell in order to perturb it are derived from a lookup-table that maps values of cell keys to specific perturbation values. The theoretical basis for the methods implemented can be found in Thompson, Broadfoot and Elazar (2013) <https://unece.org/fileadmin/DAM/stats/documents/ece/ces/ge.46/2013/Topic_1_ABS.pdf> which was extended and enhanced by Giessing and Tent (2019) <https://unece.org/fileadmin/DAM/stats/documents/ece/ces/ge.46/2019/mtg1/SDC2019_S2_Germany_Giessing_Tent_AD.pdf>.
Authors:
cellKey_1.0.2.tar.gz
cellKey_1.0.2.zip(r-4.5)cellKey_1.0.2.zip(r-4.4)cellKey_1.0.2.zip(r-4.3)
cellKey_1.0.2.tgz(r-4.4-any)cellKey_1.0.2.tgz(r-4.3-any)
cellKey_1.0.2.tar.gz(r-4.5-noble)cellKey_1.0.2.tar.gz(r-4.4-noble)
cellKey_1.0.2.tgz(r-4.4-emscripten)cellKey_1.0.2.tgz(r-4.3-emscripten)
cellKey.pdf |cellKey.html✨
cellKey/json (API)
NEWS
# Install 'cellKey' in R: |
install.packages('cellKey', repos = c('https://bernhard-da.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/sdctools/usersupport/issues
- ck_dat_hc92 - A real-world data set on persons
- testdata - A real-world data set on household income and expenditures
Last updated 12 months agofrom:7246630aad. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 31 2024 |
R-4.5-win | OK | Oct 31 2024 |
R-4.5-linux | OK | Oct 31 2024 |
R-4.4-win | OK | Oct 31 2024 |
R-4.4-mac | OK | Oct 31 2024 |
R-4.3-win | OK | Oct 31 2024 |
R-4.3-mac | OK | Oct 31 2024 |
Exports:ck_cnt_measuresck_create_testdatack_flexparamsck_generate_rkeysck_params_cntsck_params_numsck_read_yamlck_setupck_simpleparamsck_vignette
Dependencies:base64encbslibcachemclicolorspacecommonmarkcrayondata.tabledigestevaluatefansifarverfastmapflexdashboardfontawesomefsggplot2glpkAPIgluegtablehighrhmshtmltoolshtmlwidgetshttpuvisobandjquerylibjsonliteknitrlabelinglaterlatticelifecyclemagrittrMASSMatrixmemoisemgcvmimemunsellnlmenloptrpillarpkgconfigprettyunitsprogresspromisesptableR6rappdirsRColorBrewerRcppRglpkrlangrmarkdownsassscalessdcHierarchiessdcTableshinyshinyjsshinythemesshinyTreeslamsourcetoolsSSBtoolsstringistringrtibbletinytexutf8vctrsviridisLitewithrxfunxtableyaml
Readme and manuals
Help Manual
Help page | Topics |
---|---|
R6 Class defining statistical tables that can be perturbed | cellkey_pkg ck_class ck_setup |
Utility measures for perturbed counts | ck_cnt_measures |
ck_create_testdata | ck_create_testdata |
A real-world data set on persons | ck_dat_hc92 |
Set parameters required to perturb numeric variables using a flex function | ck_flexparams |
Generate random record keys | ck_generate_rkeys |
Create perturbation parameters for count variables | ck_params_cnts |
Set perturbation parameters for continuous variables | ck_params_nums |
Read perturbation parameters from yaml-files | ck_read_yaml |
Set parameters required to perturb numeric variables using a simple approach | ck_simpleparams |
ck_vignette | ck_vignette |
A real-world data set on household income and expenditures | testdata |