View source: R/aux_functions.r
calcRisks | R Documentation |
Recomputation of Risk should be done after manual changing the content of an object of class sdcMicroObj
calcRisks(obj, ...)
obj |
a sdcMicroObj object |
... |
no arguments at the moment |
By applying this function, the dislosure risk is re-estimated and the corresponding slots of an object of class sdcMicroObj are updated. This function mostly used internally to automatically update the risk after an sdc method is applied.
a sdcMicroObj object with updated risk values
sdcMicroObj
data(testdata2)
sdc <- createSdcObj(testdata2,
keyVars=c('urbrur','roof','walls','water','electcon','relat','sex'),
numVars=c('expend','income','savings'), w='sampling_weight')
sdc <- calcRisks(sdc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.