
Last chance! 50% off unlimited learning
Sale ends in
A Function for the comparison of different perturbation methods.
valTable(x, method = c("simple", "onedims", "clustpppca",
"addNoise: additive", "swappNum"), measure = "mean",
clustermethod = "clara", aggr = 3, nc = 8, transf = "log", p = 15,
noise = 15, w = 1:dim(x)[2], delta = 0.1)
data frame or matrix
microaggregation methods or adding noise methods or rank swapping.
FUN for aggregation. Possible values are mean (default), median, trim, onestep.
clustermethod, if a method will need a clustering procedure
aggregation level (default=3)
number of clusters. Necessary, if a method will need a clustering procedure
Transformation of variables before clustering.
Swapping range, if method swappNum has been chosen
noise addition, if an addNoise method has been chosen
variables for swapping, if method swappNum has been chosen
parameter for adding noise method ‘correlated2’
Measures of information loss splitted for the comparison of different methods.
Methods for adding noise should be named via “addNoise: method”, e.g. “addNoise: correlated”, i.e. the term ‘at first’ then followed by a ‘:’ and a blank and then followed by the name of the method as described in function ‘addNoise’.
Tabelarise the output from summary.micro. Will be enhanced to all perturbation methods in future versions.
Templ, M. and Meindl, B., Software Development for SDC in R, Lecture Notes in Computer Science, Privacy in Statistical Databases, vol. 4302, pp. 347-359, 2006.
# NOT RUN {
data(Tarragona)
# }
# NOT RUN {
valTable(Tarragona[100:200,],
method=c("simple","onedims","pca","addNoise: additive"))
valTable(Tarragona,
method=c("simple","onedims","pca","clustpppca",
"mdav", "addNoise: additive", "swappNum"))
## clustpppca in combination with Mclust outperforms
## the other algorithms for this data set...
# }
Run the code above in your browser using DataLab