sensitivity_score {sdcSpatial} | R Documentation |
Mean sensitivity for raster
Description
sensitivity_score
calculates the fraction of cells (with a value)
that are considered sensitive according to the used disclosure_risk
Usage
sensitivity_score(x, max_risk = x$max_risk, min_count = x$min_count, ...)
Arguments
x |
|
max_risk |
a risk value higher than |
min_count |
a count lower than |
... |
passed on to |
See Also
Other sensitive:
disclosure_risk()
,
is_sensitive_at()
,
is_sensitive()
,
plot_sensitive()
,
remove_sensitive()
,
sdc_raster()
Examples
consumption <- sdc_raster(dwellings[1:2], variable = dwellings$consumption, r = 500)
sensitivity_score(consumption)
# same as
print(consumption)
# change the rules! A higher norm generates more sensitive cells
sensitivity_score(consumption, min_count = 20)
[Package sdcSpatial version 0.5.2 Index]