calcRisks: Recompute Risk and Frequencies for a sdcMicroObj

View source: R/aux_functions.r

calcRisksR Documentation

Recompute Risk and Frequencies for a sdcMicroObj

Description

Recomputation of Risk should be done after manual changing the content of an object of class sdcMicroObj

Usage

calcRisks(obj, ...)

Arguments

obj

a sdcMicroObj object

...

no arguments at the moment

Details

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.

Value

a sdcMicroObj object with updated risk values

See Also

sdcMicroObj

Examples

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)


sdcMicro documentation built on Sept. 27, 2023, 5:07 p.m.