Learn R Programming

sdcMicro (version 4.0.1)

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",...)

Arguments

obj
an object of class 'sdcMicroObj'
...
see possible arguments below
outdir
output folder
filename
output filename
Title
Title for HTML

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')
\dontrun{report(sdc)}

Run the code above in your browser using DataLab