https://github.com/statisticsnorway/ssb-smallcountrounding
R package for Small Count Rounding of Tabular Data
https://github.com/statisticsnorway/ssb-smallcountrounding
cran r r-package statistics
Last synced: 10 months ago
JSON representation
R package for Small Count Rounding of Tabular Data
- Host: GitHub
- URL: https://github.com/statisticsnorway/ssb-smallcountrounding
- Owner: statisticsnorway
- License: other
- Created: 2018-07-03T11:46:39.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-03-13T20:09:49.000Z (over 1 year ago)
- Last Synced: 2025-04-05T00:11:15.615Z (about 1 year ago)
- Topics: cran, r, r-package, statistics
- Language: R
- Homepage: https://statisticsnorway.github.io/ssb-smallcountrounding/
- Size: 1.61 MB
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# R package SmallCountRounding
| [SmallCountRounding on CRAN](https://cran.r-project.org/package=SmallCountRounding) | | [pkgdown website](https://statisticsnorway.github.io/ssb-smallcountrounding/) | | [GitHub Repository](https://github.com/statisticsnorway/ssb-smallcountrounding) |
|----------------------|---|----------------------|---|----------------------|
***
[](http://www.awesomeofficialstatistics.org)
## Small Count Rounding of Tabular Data
See the package vignette:
[Introduction to ‘SmallCountRounding’](https://cran.r-project.org/web/packages/SmallCountRounding/vignettes/Introduction_to_SmallCountRounding.html)
***
### Installation
You can install SmallCountRounding from CRAN with
```r
install.packages("SmallCountRounding")
```
Alternatively install from GitHub by`devtools::install_github("statisticsnorway/SmallCountRounding")` if you want to test the newest changes.
***
### A statistical disclosure control tool to protect frequency tables in cases where small values are sensitive
The main function,
[PLSrounding()](https://statisticsnorway.github.io/ssb-smallcountrounding/reference/PLSrounding.html),
performs small count rounding of necessary inner cells (Heldal, 2017)
so that all small frequencies of cross-classifications to be published (publishable cells) are rounded. This is equivalent to changing micro data since frequencies of unique combinations are changed. Thus, additivity and consistency are guaranteed.
This is performed by an algorithm inspired by partial least squares regression (Langsrud and Heldal, 2018).
#### References
Heldal, J.: The European Census Hub 2011 Hypercubes - Norwegian SDC Experiences. In: Work Session on Statistical Data Confidentiality (2017), Skopje, The former Yugoslav Republic of Macedonia, September 20-22 , 2017.
Langsrud, Ø. and Heldal, J.: An Algorithm for Small Count Rounding of Tabular Data.
To be presented at: Privacy in statistical databases, Valencia, Spain. September 26-28, 2018.
[Full-text](https://www.researchgate.net/publication/327768398_An_Algorithm_for_Small_Count_Rounding_of_Tabular_Data)
and
[presentation](https://www.researchgate.net/publication/327916165_An_Algorithm_for_Small_Count_Rounding_of_Tabular_Data_-_Presentation)
available at Researchgate.
***
📌 See the [broader list of available functions](https://statisticsnorway.github.io/ssb-smallcountrounding/reference/index.html).
***
Official version on CRAN: [https://cran.r-project.org/package=SmallCountRounding](https://cran.r-project.org/package=SmallCountRounding)