argus_microaggregation: argus_microaggregation

View source: R/muargus_compatibility_functions.R

argus_microaggregationR Documentation

argus_microaggregation

Description

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.

Usage

argus_microaggregation(df, k, useOptimal = FALSE)

Arguments

df

a data.frame with only numerical columns

k

required group size

useOptimal

(logical) should optimal microaggregation be applied (ony possible in in case of one variable)

Value

a list with two elements

  • original: the originally provided input data

  • microaggregated: the microaggregated data.frame

See Also

mu-Argus manual at https://github.com/sdcTools/manuals/raw/master/mu-argus/MUmanual5.1.pdf

Examples

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)

alexkowa/sdcMicro documentation built on March 12, 2024, 11:46 p.m.