Learn R Programming

RegSDC (version 1.0.0)

Information Preserving Regression-Based Tools for Statistical Disclosure Control

Description

Implementation of the methods described in the paper with the above title: Langsrud, Ø. (2019) . The package can be used to generate synthetic or hybrid continuous microdata, and the relationship to the original data can be controlled in several ways. A function for replacing suppressed tabular cell frequencies with decimal numbers is included.

Copy Link

Version

Install

install.packages('RegSDC')

Monthly Downloads

469

Version

1.0.0

License

Apache License 2.0 | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Oyvind Langsrud

Last Published

February 3rd, 2025

Functions in RegSDC (1.0.0)

CalculateCdirect

Calculation of C by solving equation 10 in the paper
Cdiff

Matrix difference (a-b) including checking for equal columns
FindAlpha

Calculation of alpha
GenQR

Generalized QR decomposition
RegSDCgen

Regression-based SDC Tools - General data generation
RegSDCadd

Regression-based SDC Tools - Synthetic addition with residual correlation control
RegSDCromm

Regression-based SDC Tools - Random orthogonal matrix masking (ROMM)
RegSDCaddGen

Regression-based SDC Tools - Synthetic addition
SuppressDec

Suppressed tabular data: Inner cell frequencies as decimal numbers
RegSDChybrid

Regression-based SDC Tools - Generalized microaggregation
IpsoExtra

Extended variant of RegSDCipso
ReduceX

Suppressed tabular data: Reduce dummy matrix, X (and estimate Y)
RegSDCcomp

Regression-based SDC Tools - Component score correlation control
RegSDCdata

Function that returns a dataset
EnsureIntercept

Ensure constant term in matrix
RegSDCipso

Regression-based SDC Tools - Ordinary synthetic data (IPSO)
RegSDCnew

Regression-based SDC Tools - Scores from new data
Z2Yhat

Suppressed tabular data: Yhat from X and Z
EnsureMatrix

Ensure that input is matrix (by as.matrix) and check number of rows (and columns)