Description Usage Arguments Details Value Examples
Confidentialise counts data by randomly rounding it to multiples of three.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
object |
An object of class |
Randomly rounding to base three is a popular confidentialisation technique at statistical agencies. It only works with data consisting entirely of integers, though negative integers are allows.
A value is rounded as follows:
If the value is divisible by 3, leave it unchanged.
If there is a remainder of 1 after dividing by 3, round down (ie subtract 1) with probability 2/3, and round up (ie add 2) with probability 1/3.
If there is a remainder of 2 after dividing by 3, round down (ie subtract 2) with probability 1/3, and round up (ie add 1) with probability 2/3.
Missing values are permitted, and are left unchanged.
An object with the same class as object
.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.