Supports functionality for grouping contributions according to holding
variables, as well as calculating dominance in surveys with a given sampling
weight. Two methods are implemented, depending on whether the sampling
weights sum to total population. The parameter tauArgusDominance
determines this. If FALSE
, unweighted contributions are compared to weighted
cell values. If TRUE
, the method described in in the
book "Statistical Disclosure Control" (Hundepool et al 2012, p. 151) is used.
FindDominantCells(
x,
inputnum,
num,
n,
k,
charVar_groups,
samplingWeight,
tauArgusDominance = FALSE,
returnContrib = FALSE,
maxContribution = NULL
)
logical vector describing which publish-cells need to be suppressed.
model matrix describing relationship between input and published cells
vector of numeric contributions for each of the input records
vector of numeric values for each of the published cells
vector of integers describing n parameters in n,k rules. Must be
same length as k
parameter.
vector of numeric values describing k parameters in n,k rules, where
percentages are described as numbers less than 100. Must be same length as
n
parameter.
vector describing which input records should be grouped
vector of sampling weights associated to input records
logical value, default FALSE
. determines how to
handle sampling weights in the dominance rule (see details).
logical value, default FALSE
. If TRUE
return value is
the percentage of the first n contributors
Possible precalculated output from MaxContribution
as input.
To speed up.