saveReprtObj.Rd
This function help to automatically integrate the results from the current anonymization to the anonymization report generated during the anonymization setup. This results include the disclosure risk analysis (global risk, individual risk, SUDA (if enabled),hierarchical risk (if enabled)) and the comparison of these risk measures before and after anonymization.
saveReprtObj(
agrisvy,
intialObj = NULL,
finalObj = NULL,
unit = NULL,
hierarchy = NULL,
global = TRUE,
individual = TRUE,
suda = FALSE,
hierarchical = FALSE,
childName = NULL
)
an sdcMicro
object in which no anonymization is
applied yet. One can save the sdcMicro
object just after its creation
in a object named for example sdc_obj_initial
and use it later in
intialObj=sdc_obj_initial
the sdcMicro
object where all anonymization measures
has been applied. One can save the last version of the sdcMicro
object
created for the anonymization as sdc_obj_final
and use it later for in
finalObj=sdc_obj_final
.
statistical unit of the microdata. This is used to make the analysis
in the anonymization report dynamic. If the microdata is a household data, we should
considered household as unit
. If the microdata is a household member data, we can specify
"member"
as unit
or "individual"
as unit
If hierarchical=TRUE
, hierarchy
contain the
higher hierarchical unit that should be used in the analysis of the
hierarchical risk. In the anonymization of household member microdata,one should
specify hierarchy="household"
if the household ID is specify in the argument
hhid
of the sdcMicro
object and that hierarchical=TRUE
in the
anonymization report object.
a logical
specifying if TRUE
, that the global risk
analysis and comparison before and after anonymization should be included in the
report.
a logical
specifying, if individual=TRUE
, that the
individual probabilistic risk and its comparison before and after anonymyzation
should be included in the anonymization report.
logical
specifying if suda=TRUE
, that the suda score
and its comparison before and after anonymization should be included in the report.
One has to make sure that the condition to compute SUDA2 score is satisfied, particularly
that the number of categorical quasi-identifiers is higher than 2.
a logical
specifying if (hierarchical=TRUE), that
hierarchical risk and its comparison before and after anonymization should be
included in the report. One has to make sure that the hierarchical risk is computed
when creating the sdcMicro
object, that is, the argument hhid
is
specified.
the object name used to save component of the resulting child report in the folder containing the anonymization report.