sensitivity_score: Mean sensitivity for raster

Description Usage Arguments See Also Examples

View source: R/sensitivity_score.R

Description

sensitivity_score calculates the fraction of cells (with a value) that are considered sensitive according to the used disclosure_risk

Usage

1
2
sensitivity_score(x, max_risk = x$max_risk, min_count = x$min_count,
  ...)

Arguments

x

sdc_raster object.

max_risk

a risk value higher than max_risk will be sensitive.

min_count

a count lower than min_count will be sensitive.

...

passed on to is_sensitive

See Also

Other sensitive: disclosure_risk, is_sensitive, plot_sensitive, remove_sensitive, sdc_raster

Examples

1
2
3
4
5
6
7
8
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)

sdcSpatial documentation built on July 20, 2019, 1:04 a.m.