Learn R Programming

sdcMicro (version 5.6.1)

argus_microaggregation: 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)

Value

a list with two elements

  • original: the originally provided input data

  • microaggregated: the microaggregated data.frame

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)

See Also

Examples

Run this code
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)

Run the code above in your browser using DataLab