Function to be used within KDisclosurePrimary
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)
x
: ModelMatrix generated by parent functioncrossTable
: crossTable generated by parent functionmc_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Øyvind Langsrud
Useful links