Usage
localSupp2(x, keyVars, w, importance=rep(1, length(keyVars)),
method="minimizeSupp", k=1)
localSupp2Wrapper (x, keyVars, w, importance=rep(1, length(keyVars)),
method="minimizeSupp", kAnon=2)
pram_strata(obj, variables=NULL,strata_variables=NULL,pd=0.8, alpha=0.5)
Arguments
keyVars
column index of key variables
w
column index of sampling weights
importance
weights for each key variable
method
minimizeSupp (default), further methods will be included in future versions of the package
k
parameter for k-anonymity.
kAnon
parameter for k-anonymity.
obj
Input data. Allowed input data are objects of class 'matrix', 'data.frame', 'vector' or 'sdcMicroObj'.
variables
Names of variables in 'obj' on which post-randomization should be applied. If obj is a vector, this argument is ignored.
strata_variables
Names of variables for stratification (will be set automatically for an object of class 'sdcMicroObj'
pd
minimum diagonal entries for the generated transition matrix P. Either a vector of length 1 or a vector of length ( number of categories ).
alpha
amount of perturbation for the invariant Pram method