calcRisks: Recompute Risk and Frequencies for a sdcMicroObj

Description Usage Arguments Details See Also Examples

View source: R/aux_functions.r

Description

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

Usage

1
calcRisks(obj, ...)

Arguments

obj

an object of class sdcMicroObj-class

...

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-class are updated. This function mostly used internally to automatically update the risk after an sdc method is applied.

See Also

sdcMicroObj-class

Examples

1
2
3
4
5
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 Aug. 10, 2017, 5:03 p.m.