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

730

Version

5.7.5

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Matthias Templ

Last Published

January 9th, 2023

Functions in sdcMicro (5.7.5)

LocalRecProg

Local recoding via Edmond's maximum weighted matching algorithm
calcRisks

Recompute Risk and Frequencies for a sdcMicroObj
argus_microaggregation

argus_microaggregation
argus_rankswap

argus_rankswap
Tarragona

Tarragona data set
addNoise

Adding noise to perturb data
addGhostVars

addGhostVars
EIA

EIA data set
casc1

Small Artificial Data set
CASCrefmicrodata

Census data set
dRisk

overal disclosure risk
dRiskRMD

RMD based disclosure risk
distributeDraws_cpp

Distribute number of swaps
distributeRandom_cpp

Distribute
dUtility

Data-Utility measures
dataGen

Fast generation of synthetic data
francdat

data from the casc project
freqCalc

Frequencies calculation for risk estimation
IL_correl

Additional Information-Loss measures
generateStrata

Generate one strata variable from multiple factors
createDat

Dummy Dataset for Record Swapping
extractManipData

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

importProblem
freq

Freq
get.sdcMicroObj

get.sdcMicroObj
createNewID

Creates new randomized IDs
groupAndRename

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

Individual Risk computation
free1

Demo data set from mu-Argus
globalRecode

Global Recoding
mafast

Fast and Simple Microaggregation
microaggrGower

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

Calculate information loss after targeted record swapping
localSupp

Local Suppression
kAnon_violations

kAnon_violations
microData

microData
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.
measure_risk

Disclosure Risk for Categorical Variables
microaggregation

Microaggregation
nextSdcObj

nextSdcObj
orderData_cpp

Reorder data
mvTopCoding

Detection and winsorization of multivariate outliers
plotMicro

Comparison plots
pram

Post Randomization
modRisk

Global risk using log-linear models.
print.indivRisk

Print method for objects from class indivRisk
randSample_cpp

Random Sampling
readMicrodata

readMicrodata
recordSwap

Targeted Record Swapping
print.sdcMicroObj

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

Print method for objects from class freqCalc.
print.modrisk

Print method for objects from class modrisk
plot.localSuppression

Plots for localSuppression objects
print.localSuppression

Print method for objects from class localSuppression
plot.sdcMicroObj

Plotfunctions for objects of class sdcMicroObj
localSuppression

Local Suppression to obtain k-anonymity
print.suda2

Print method for objects from class suda2
print.micro

Print method for objects from class micro
rankSwap

Rank Swapping
print.pram

Print method for objects from class pram
sdcApp

sdcApp
sampleDonor_cpp

Random sample for donor records
set.sdcMicroObj

set.sdcMicroObj
selectHouseholdData

Creates a household level file from a dataset with a household structure.
suda2

Suda2: Detecting Special Uniques
show,sdcMicroObj-method

Show
subsetMicrodata

subsetMicrodata
summary.micro

Summary method for objects from class micro
sdcMicroObj-class

Class "sdcMicroObj"
summary.freqCalc

Summary method for objects from class freqCalc
shuffle

Shuffling and EGADP
sdcMicro-package

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

Calculate Risk
writeSafeFile

writeSafeFile
setLevels_cpp

Define Swap-Levels
riskyCells

riskyCells
summary.pram

Summary method for objects from class pram
report

Generate an Html-report from an sdcMicroObj
varToFactor

Change the a keyVariable of an object of class sdcMicroObj-class from Numeric to Factor or from Factor to Numeric
testdata

A real-world data set on household income and expenditures
recordSwap_cpp

Targeted Record Swapping
removeDirectID

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

Top and Bottom Coding
valTable

Comparison of different microaggregation methods