Learn R Programming

⚠️There's a newer version (5.7.8) of this package.Take me there.

sdcMicro

sdcMicro is an R-package to anonymize microdata. Most functionalities of the package are also available via an interactive shiny-based graphical user interface.

The online documentation can also be found at sdctools.github.io/sdcMicro.

Copy Link

Version

Install

install.packages('sdcMicro')

Monthly Downloads

685

Version

5.7.2

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Matthias Templ

Last Published

August 9th, 2022

Functions in sdcMicro (5.7.2)

addGhostVars

addGhostVars
argus_rankswap

argus_rankswap
calcRisks

Recompute Risk and Frequencies for a sdcMicroObj
argus_microaggregation

argus_microaggregation
Tarragona

Tarragona data set
LocalRecProg

Local recoding via Edmond's maximum weighted matching algorithm
addNoise

Adding noise to perturb data
casc1

Small Artificial Data set
CASCrefmicrodata

Census data set
dataGen

Fast generation of synthetic data
distributeDraws_cpp

Distribute number of swaps
globalRecode

Global Recoding
freq

Freq
freqCalc

Frequencies calculation for risk estimation
dRisk

overal disclosure risk
createNewID

Creates new randomized IDs
groupAndRename

Join levels of a variables in an object of class sdcMicroObj-class or factor or data.frame
mafast

Fast and Simple Microaggregation
generateStrata

Generate one strata variable from multiple factors
get.sdcMicroObj

get.sdcMicroObj
dRiskRMD

RMD based disclosure risk
localSuppression

Local Suppression to obtain k-anonymity
dUtility

Data-Utility measures
distributeRandom_cpp

Distribute
extractManipData

Remove certain variables from the data set inside a sdc object.
EIA

EIA data set
kAnon_violations

kAnon_violations
IL_correl

Additional Information-Loss measures
pram

Post Randomization
print.freqCalc

Print method for objects from class freqCalc.
localSupp

Local Suppression
print.localSuppression

Print method for objects from class localSuppression
print.indivRisk

Print method for objects from class indivRisk
recordSwap_cpp

Targeted Record Swapping
createDat

Dummy Dataset for Record Swapping
microaggrGower

Microaggregation for numerical and categorical key variables based on a distance similar to the Gower Distance
microData

microData
importProblem

importProblem
measure_risk

Disclosure Risk for Categorical Variables
mergeHouseholdData

Replaces the raw household-level data with the anonymized household-level data in the full dataset for anonymization of data with a household structure (or other hierarchical structure). Requires a matching household ID in both files.
indivRisk

Individual Risk computation
randSample_cpp

Random Sampling
free1

Demo data set from mu-Argus
francdat

data from the casc project
print.suda2

Print method for objects from class suda2
infoLoss

Calculate information loss after targeted record swapping
microaggregation

Microaggregation
modRisk

Global risk using log-linear models.
mvTopCoding

Detection and winsorization of multivariate outliers
nextSdcObj

nextSdcObj
plot.sdcMicroObj

Plotfunctions for objects of class sdcMicroObj-class
sdcApp

sdcApp
summary.freqCalc

Summary method for objects from class freqCalc
suda2

Suda2: Detecting Special Uniques
sdcMicro-package

Statistical Disclosure Control (SDC) for the generation of protected microdata for researchers and for public use.
orderData_cpp

Reorder data
plot.localSuppression

plot method for localSuppression objects
removeDirectID

Remove certain variables from the data set inside a sdc object.
report

Generate an Html-report from an sdcMicroObj
plotMicro

Comparison plots
rankSwap

Rank Swapping
print.sdcMicroObj

Print and Extractor Functions for objects of class sdcMicroObj-class
print.pram

Print method for objects from class pram
writeSafeFile

writeSafeFile
set.sdcMicroObj

set.sdcMicroObj
shuffle

Shuffling and EGADP
subsetMicrodata

subsetMicrodata
topBotCoding

Top and Bottom Coding
selectHouseholdData

Creates a household level file from a dataset with a household structure.
print.micro

Print method for objects from class micro
testdata

A real-world data set on household income and expenditures
print.modrisk

Print method for objects from class modrisk
sdcMicroObj-class

Class "sdcMicroObj"
setLevels_cpp

Define Swap-Levels
summary.micro

Summary method for objects from class micro
summary.pram

Summary method for objects from class pram
readMicrodata

readMicrodata
sampleDonor_cpp

Random sample for donor records
riskyCells

riskyCells
setRisk_cpp

Calculate Risk
varToFactor

Change the a keyVariable of an object of class sdcMicroObj-class from Numeric to Factor or from Factor to Numeric
show,sdcMicroObj-method

Show
valTable

Comparison of different microaggregation methods