Skip to contents

RAPPOR decode (Sec. 4)

Usage

morie_rappor_decode(counts, sizes, f = 0.5, p = 0.5, q = 0.75)

Arguments

counts

Per-cohort bit counts, a matrix or list of rows.

sizes

Reports per cohort.

f, p, q

RAPPOR parameters.

Value

A list whose t holds the estimated true set-bit counts.

Examples

V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_rappor_decode(V, V)
#> $estimate
#>      [,1]
#> [1,]  3.5
#> [2,]  7.0
#> [3,] 10.5
#> [4,] 14.0
#> [5,] 17.5
#> [6,] 21.0
#> [7,] 24.5
#> [8,] 28.0
#> 
#> $t
#>      [,1]
#> [1,]  3.5
#> [2,]  7.0
#> [3,] 10.5
#> [4,] 14.0
#> [5,] 17.5
#> [6,] 21.0
#> [7,] 24.5
#> [8,] 28.0
#> 
#> $shift
#> [1] 0.5625
#> 
#> $denominator
#> [1] 0.125
#> 
#> $cohort_sizes
#> [1] 1 2 3 4 5 6 7 8
#> 
#> $f
#> [1] 0.5
#> 
#> $p
#> [1] 0.5
#> 
#> $q
#> [1] 0.75
#> 
#> $method
#> [1] "RAPPOR decode (Erlingsson, Pihur & Korolova 2014, Sec. 4)"
#>