sensitivity_score calculates the fraction of cells (with a value)
that are considered sensitive according to the used disclosure_risk
Arguments
- x
sdc_rasterobject.- max_risk
a risk value higher than
max_riskwill be sensitive.- min_count
a count lower than
min_countwill be sensitive.- ...
passed on to
is_sensitive
See also
Other sensitive:
disclosure_risk(),
is_sensitive(),
is_sensitive_at(),
plot_sensitive(),
remove_sensitive(),
sdc_raster()
Examples
# \donttest{
consumption <- sdc_raster(dwellings[1:2], variable = dwellings$consumption, r = 500)
sensitivity_score(consumption)
#> [1] 0.4207188
# same as
print(consumption)
#> numeric sdc_raster object:
#> resolution: 500 500 , max_risk: 0.95 , min_count: 10
#> mean sensitivity score [0,1]: 0.4207188
# change the rules! A higher norm generates more sensitive cells
sensitivity_score(consumption, min_count = 20)
#> [1] 0.5116279
# }