50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

sdcMicro (version 4.0.2)

report: Generate a HTML output from an sdcMicroObj

Description

Summary statistics of the original and the perturbed data set

Usage

report(obj, outdir=getwd(),filename="SDC-Report",Title="SDC-Report",internal=TRUE)

Arguments

obj
an object of class 'sdcMicroObj'
outdir
output folder
filename
output filename
Title
Title for HTML
internal
TRUE for the long internal version of the report. FALSE for a short version for externals.

Details

The application of this function provides you with a html report for your sdcMicro object.

Examples

Run this code
data(free1)
x <- data.frame(free1[,c(2,4:5)])
x["SEX"] <- as.factor(x[,"SEX"])
x["MARSTAT"] <- as.factor(x[,"MARSTAT"])
x["KINDPERS"] <- as.factor(x[,"KINDPERS"])
LLmodGlobalRisk(x, inclProb=1/mean(free1[,"WEIGHT"]))

## for objects of class sdcMicro:
data(testdata2)
sdc <- createSdcObj(testdata2, keyVars=c('urbrur','roof','walls','water','electcon','relat','sex'), 
           numVars=c('expend','income','savings'), w='sampling_weight')
report(sdc)

Run the code above in your browser using DataLab