Package: cellKey 1.0.3
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.3.tar.gz
cellKey_1.0.3.zip(r-4.7)cellKey_1.0.3.zip(r-4.6)cellKey_1.0.3.zip(r-4.5)
cellKey_1.0.3.tgz(r-4.6-any)cellKey_1.0.3.tgz(r-4.5-any)
cellKey_1.0.3.tar.gz(r-4.7-any)cellKey_1.0.3.tar.gz(r-4.6-any)
cellKey_1.0.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
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 from:a4b86e1eeb. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 211 | ||
| source / vignettes | OK | 272 | ||
| linux-release-x86_64 | OK | 199 | ||
| macos-release-arm64 | OK | 190 | ||
| macos-oldrel-arm64 | OK | 158 | ||
| windows-devel | OK | 154 | ||
| windows-release | OK | 236 | ||
| windows-oldrel | OK | 161 | ||
| wasm-release | OK | 143 |
Exports:ck_cnt_measuresck_create_testdatack_flexparamsck_generate_rkeysck_params_cntsck_params_numsck_read_yamlck_setupck_simpleparamsck_vignette
Dependencies:backportsbase64encbslibcachemcheckmateclicommonmarkcpp11data.tabledigestevaluatefarverfastmapflexdashboardfontawesomefsggplot2gluegtablehighrhighshtmltoolshtmlwidgetshttpuvisobandjquerylibjsonliteknitrlabelinglaterlatticelifecyclemagrittrMASSMatrixmemoisemimenloptrotelprogressrpromisesptableR6rappdirsRColorBrewerRcpprlangrmarkdownS7sassscalessdcHierarchiessdcTableshinyshinyjsshinythemesshinyTreeslamsourcetoolsSSBtoolsstringistringrtinytexvctrsviridisLitewithrxfunxtableyaml
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 |
