KDisclosurePrimary function

Construct primary suppressed difference matrix

Construct primary suppressed difference matrix

Function for constructing model matrix columns representing primary suppressed difference cells

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

Returns

dgCMatrix corresponding to primary suppressed cells

Author(s)

Daniel P. Lupp