| disclosure_risk {sdcSpatial} | R Documentation | 
Calculate disclosure risk for raster cells
Description
The disclosure risk function is used by is_sensitive() to determine the risk of
a raster cell. It returns a score between 0 and 1 for cells that have a finite
value (otherwise NA).
Usage
disclosure_risk(x, risk_type = x$risk_type)
Arguments
| x | 
 | 
| risk_type | 
 | 
Details
Different risk functions include:
- external (numeric variable), calculates how much the largest value comprises the total sum within a cell 
- internal (numeric variable), calculates how much the largest value comprises the sum without the second largest value 
- discrete (logical variable), calculates the fraction of - TRUEvs- FALSE
Value
raster::raster object with the disclosure risk.
See Also
Other sensitive: 
is_sensitive_at(),
is_sensitive(),
plot_sensitive(),
remove_sensitive(),
sdc_raster(),
sensitivity_score()
[Package sdcSpatial version 0.5.2 Index]