X_from_mc: Function to be used within 'KDisclosurePrimary'

View source: R/X_from_mc.R

X_from_mcR Documentation

Function to be used within KDisclosurePrimary

Description

Function to be used within KDisclosurePrimary

Usage

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


GaussSuppression documentation built on Sept. 24, 2024, 5:07 p.m.