View source: R/muargus_compatibility_functions.R
argus_microaggregation | R Documentation |
calls microaggregation code from mu-argus. In case only one variable should be
microaggregated and useOptimal
is TRUE
, Hansen-Mukherjee polynomial exact method
is applied. In any other case, the Mateo-Domingo method is used.
argus_microaggregation(df, k, useOptimal = FALSE)
df |
a |
k |
required group size |
useOptimal |
(logical) should optimal microaggregation be applied (ony possible in in case of one variable) |
a list
with two elements
original: the originally provided input data
microaggregated: the microaggregated data.frame
mu-Argus manual at https://github.com/sdcTools/manuals/raw/master/mu-argus/MUmanual5.1.pdf
mat <- matrix(sample(1:100, 50, replace=TRUE), nrow=10, ncol=5)
df <- as.data.frame(mat)
res <- argus_microaggregation(df, k=5, useOptimal=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.