print.sdcMicroObj {sdcMicro} | R Documentation |
Print and Extractor Functions for objects of class sdcMicroObj-class
Description
Descriptive print function for Frequencies, local Supression, Recoding, categorical risk and numerical risk.
Usage
## S4 method for signature 'sdcMicroObj'
print(x, type = "kAnon", docat = TRUE, ...)
Arguments
x |
An object of class |
type |
Selection of the content to be returned or printed |
docat |
logical, if TRUE (default) the results will be actually printed |
... |
the type argument for the print method, currently supported are:
|
Details
Possible values for the type argument of the print function are: "freq": for Frequencies, "ls": for Local Supression output, "pram": for results of post-randomization "recode":for Recodes, "risk": forCategorical risk and "numrisk": for Numerical risk.
Possible values for the type argument of the freq function are: "fk": Sample frequencies and "Fk": weighted frequencies.
Author(s)
Alexander Kowarik, Matthias Templ, Bernhard Meindl
Examples
data(testdata)
sdc <- createSdcObj(testdata,
keyVars=c('urbrur','roof','walls','relat','sex'),
pramVars=c('water','electcon'),
numVars=c('expend','income','savings'), w='sampling_weight')
sdc <- microaggregation(sdc, method="mdav", aggr=3)
print(sdc)
print(sdc, type="general")
print(sdc, type="ls")
print(sdc, type="recode")
print(sdc, type="risk")
print(sdc, type="numrisk")
print(sdc, type="pram")
print(sdc, type="kAnon")
print(sdc, type="comp_numvars")