{"id":38986962,"url":"https://github.com/sdctools/censusprotection","last_synced_at":"2026-01-17T17:00:01.604Z","repository":{"id":50157798,"uuid":"152209192","full_name":"sdcTools/CensusProtection","owner":"sdcTools","description":"Methods and tools for Census protection (Target Record Swapping and Cell Key Method)","archived":false,"fork":false,"pushed_at":"2023-02-13T13:24:23.000Z","size":16261,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-03-27T08:12:39.035Z","etag":null,"topics":["census","cpp","muargus","r","tauargus"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sdcTools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-09T07:43:14.000Z","updated_at":"2024-03-27T08:12:39.035Z","dependencies_parsed_at":"2023-02-14T17:45:49.105Z","dependency_job_id":null,"html_url":"https://github.com/sdcTools/CensusProtection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sdcTools/CensusProtection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdcTools%2FCensusProtection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdcTools%2FCensusProtection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdcTools%2FCensusProtection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdcTools%2FCensusProtection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdcTools","download_url":"https://codeload.github.com/sdcTools/CensusProtection/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdcTools%2FCensusProtection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["census","cpp","muargus","r","tauargus"],"created_at":"2026-01-17T17:00:01.407Z","updated_at":"2026-01-17T17:00:01.570Z","avatar_url":"https://github.com/sdcTools.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n# CensusProtection\n\n## How to use the open-source versions of the recommended census protection methods\n\nThis repository explains how to use tools and methods recommended for\ncensus 2021 protection. Part 1 is related to targeted record swapping\nwhile part 2 focuses on the cell-key method. The methods can be used\nindependently: it is either possible to compute unperturbed hypercubes\nwith swapped microdata (part 2 can be ignored), perturbed hypercubes\nwith original microdata (part 1 can be skipped), or perturbed hypercubes\nwith swapped microdata (part 1 then part 2).\n\nThe instructions below contain references to the respective\nGithub-repositories with the updated versions of the tools recommended\nfor the protection of census. The activities related with development of\ntools and methods for the census protection were co-funded by Eurostat.\n\n### Part 1: Targeted record swapping\n\nTo apply record swapping to original microdata it is possible to use\neither the `R` package\n[`sdcMicro`](https://github.com/sdcTools/sdcMicro)\n(paragraph 1.1) or [`MuARGUS`](https://github.com/sdcTools/muargus)\n(paragraph 1.2).\n\nBoth implementation use the same underlying new C++ code which is\noptimized to be incredibly fast. This new implementation of the targeted\nrecord swapping method is intended to be very close to the SAS codes\ntested in the previous SGA based on the ONS codes. More information\nregarding the small differences can be found in the vignettes `vignette(\"recordSwapping\")` from\n[`sdcMicro`](https://github.com/sdcTools/sdcMicro) package.\n\n#### 1.1 R-package for targeted record swapping\n\nTargeted record swapping is part of the package [`github.com/sdcTools/sdcMicro`](https://github.com/sdcTools/sdcMicro), function `recordSwap()`. The vignette for targeted record swapping is callable via `vignette(\"recordSwapping\")`.\n\n#### 1.2 MuARGUS\n\nThe latest release of [`MuARGUS`](https://github.com/sdcTools/muargus)\nthat includes the implementation of record swapping is available at\n[`github.com/sdcTools/muargus/releases`](https://github.com/sdcTools/muargus/releases)\nwhere also a quick reference documentation with explanations and\nscreenshots can be downloaded.\n\n### Part 2: Cell-key method\n\nThe cell-key method can be applied either with the R package\n[`cellKey`](https://github.com/sdcTools/cellKey) (paragraph 2.2) or\n[`tauArgus`](https://github.com/sdcTools/tauargus) (paragraph 2.3). Both\nimplementation use the [`ptable`](https://github.com/sdcTools/ptable)\npackage (paragraph 2.1).\n\n#### 2.1 R-package ptable\n\nThe package is developed at\n[`github.com/sdcTools/ptable`](https://github.com/sdcTools/ptable) where\nalso installation instructions and example usage can be found. The\npackage includes a vignette and a graphical user interface and it can\ndraw plots that describe the perturbations that will be applied to the\nhypercubes based on a specific pTable with the\n[`cellKey`](https://github.com/sdcTools/cellKey) package,\n[`tauArgus`](https://github.com/sdcTools/tauargus) or SAS macros.\n\n#### 2.2 R-package cellKey\n\nThe package is developed at\n[`github.com/sdcTools/cellKey`](https://github.com/sdcTools/cellKey)\nwhere also installation instructions and example usage can be found. The\npackage includes also a detailed vignette that helps users getting\nstarted with the functionality of the package.\n\n##### Instructions for installing R-packages\n\n```\ninstall.packages(c(\"data.table\",\"devtools\",\"R.utils\",\"sdcTable\",\"sdcMicro\",\"sdcHierarchies\",\"remotes\"))\n\n# install ptable\ndevtools::install_github(\"sdcTools/ptable\", dependencies=c(\"Depends\",\"Imports\"), force=TRUE, build_opts=\"--build-vignettes\")\n# install cellKey\nremotes::install_github(repo = \"sdcTools/cellKey\", dependencies = TRUE, build_opts = \"--no-resave-data\", force = TRUE)\n```\n\n\n#### 2.3 TauARGUS\n\nThe latest release of [`TauArgus`](https://github.com/sdcTools/tauargus)\nthat includes the implementation of the cellKey method is available at\n[`github.com/sdcTools/tauargus/releases`](https://github.com/sdcTools/tauargus/releases)\nwhere also a quick reference documentation with explanations and\nscreenshots can be downloaded.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdctools%2Fcensusprotection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdctools%2Fcensusprotection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdctools%2Fcensusprotection/lists"}