Learn R Programming

sdcMicro (version 2.0.4)

dRisk: overal disclosure risk

Description

Disclosure risk via standard deviation-based intervals.

Usage

dRisk(x, xm, k = 0.01)

Arguments

x
original data
xm
perturbed data
k
percentage of the standard deviation

Value

  • The disclosure risk.

Details

An interval is built around each value of the perturbed value with the help of the standard deviation. Then we look if the original values are in these intervals or not. With parameter k we can enlarge or down scaling the interval.

References

http://vneumann.etse.urv.es/publications/sci/lncs3050Outlier.pdf

See Also

dUtility

Examples

Run this code
data(free1)
m1 <- microaggregation(free1[, 31:34], method="onedims", aggr=3)
m2 <- microaggregation(free1[, 31:34], method="pca", aggr=3)
dRisk(x=free1[, 31:34], xm=m1$blowxm)
dRisk(x=free1[, 31:34], xm=m2$blowxm)
dUtility(x=free1[, 31:34], xm=m1$blowxm)
dUtility(x=free1[, 31:34], xm=m2$blowxm)

Run the code above in your browser using DataLab