attack: attacking primary suppressed cells and calculating current...

Description Usage Arguments Value Author(s) Examples

Description

Function attack is used to calculate lower and upper bounds for a given sdcProblem (stored as object of class sdcProblem-class). For all calculations the current suppression pattern is used when calculating solutions of the attacker's problem.

Usage

1
attack(object, verbose = FALSE)

Arguments

object

an object of class sdcProblem-class

verbose

a logical vector specifying if output should be verbose (TRUE) or not (FALSE)

Value

a data.frame with column 'index' holding indices of primary suppressed cells and columns 'bounds_min' and 'bounds_max' featuring calculated lower and upper bounds for each cell. Column 'protected' shows if a given cell is accordingly protected (TRUE) or not (FALSE).

Author(s)

Bernhard Meindl bernhard.meindl@statistik.gv.at

Examples

1
2
3
4
5
6
7
8
9
# load problem (as it was created after performing primary suppression
# in the example of \code{\link{primarySuppression}})
sp <- searchpaths()
fn <- paste(sp[grep("sdcTable", sp)], "/data/problemWithSupps.RData", sep="")
problem <- get(load(fn))

# calculate current lower|upper bounds given current suppression pattern
# (in this case consisting of primary suppressions only)
attack(problem, verbose=FALSE)

bernhard-da/sdcTable documentation built on June 10, 2019, 4:54 a.m.