Construct primary suppressed difference matrix
Source:R/SuppressKDisclosure.R
KDisclosurePrimary.Rd
Function for constructing model matrix columns representing primary suppressed difference cells
Usage
KDisclosurePrimary(
data,
x,
crossTable,
freqVar,
mc_hierarchies = NULL,
coalition = 1,
upper_bound = Inf,
...
)
Arguments
- data
a data.frame representing the data set
- x
ModelMatrix generated by parent function
- crossTable
crossTable generated by parent function
- freqVar
name of the frequency variable in
data
- mc_hierarchies
a hierarchy representing meaningful combinations to be protected. Default value is
NULL
.- coalition
numeric vector of length one, representing possible size of an attacking coalition. This parameter corresponds to the parameter k in the definition of k-disclosure.
- upper_bound
numeric value representing minimum count considered safe. Default set to
Inf
- ...
parameters passed to children functions