X_from_mc function

Function to be used within KDisclosurePrimary

Function to be used within KDisclosurePrimary

X_from_mc( x, crossTable, mc_hierarchies, removeIncomplete = FALSE, returnNewCrossTable = FALSE, noInner = FALSE, ... ) X_from_mc_remove(..., removeIncomplete = TRUE) X_from_mc_noinner(..., noInner = TRUE) X_from_mc_remove_noinner(..., removeIncomplete = TRUE, noInner = TRUE)

Arguments

  • x: ModelMatrix generated by parent function
  • crossTable: crossTable generated by parent function
  • mc_hierarchies: a hierarchy representing meaningful combinations to be protected. Default value is NULL.
  • removeIncomplete: When TRUE, the input code contributions are checked and incomplete entries are removed.
  • returnNewCrossTable: When TRUE, the crossTable corresponding to the created x-matrix is also returned (in a list)
  • noInner: When TRUE, more efficient generation of model matrix. (removing inner cells according to colSums not needed)
  • ...: parameters passed to children functions

Author(s)

Øyvind Langsrud