CandidatesDefault | R Documentation |
Function for GaussSuppressionFromData
CandidatesDefault(freq, x, secondaryZeros = FALSE, weight, ...)
CandidatesNum(
secondaryZeros = FALSE,
freq = NULL,
num,
weight,
x,
candidatesVar = NULL,
removeCodes = character(0),
removeCodesForCandidates = TRUE,
data,
charVar,
...
)
freq |
Vector of output frequencies |
x |
The model matrix |
secondaryZeros |
When |
weight |
Vector of output weights |
... |
Unused parameters |
num |
Data frame of output aggregates calculated from |
candidatesVar |
One of the variable names from |
removeCodes |
Same parameter as used in suppression rules, e.g. |
removeCodesForCandidates |
|
data |
Input data as a data frame (needed for |
charVar |
Variable(s) with contributor codes (needed for |
CandidatesDefault
orders the indices decreasingly according to freq
or,
when weight
is non-NULL, (freq+1)*weight
. Ties are handled by prioritizing output cells
that are calculated from many input cells. In addition, zeros are handled according to parameter secondaryZeros
.
When freq
is negative (special hierarchy), abs(freq)*weight
is used.
CandidatesNum
orders the indices decreasingly according to absolute values of the numeric variable (according to abs(num[[1]])
).
In practice this is done by running CandidatesDefault
with manipulated weights.
candidates, GaussSuppression
input
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.