Learn R Programming

RegSDC (version 0.4.0)

RegSDCaddGen: Regression-based SDC Tools - Synthetic addition

Description

Residuals from arbitrary data with a synthetic addition

Usage

RegSDCaddGen(
  y,
  yStart,
  x = NULL,
  epsAlpha = 1e-07,
  AlphaHandler = warning,
  alphaAttr = TRUE,
  makeunique = TRUE,
  ensureIntercept = TRUE
)

Arguments

y

Matrix of confidential variables

yStart

Arbitrary data whose residuals will be used

x

Matrix of non-confidential variables

epsAlpha

Precision constant for alpha calculation

AlphaHandler

Function (warning or stop) to be used when alpha<1

alphaAttr

When TRUE alpha is attribute in output

makeunique

Parameter to be used in GenQR

ensureIntercept

Whether to ensure/include a constant term. Non-NULL x is subjected to EnsureIntercept

Value

Generated version of y

Details

Use epsAlpha=NULL to avoid calculation of alpha. Use of alpha (<1) will produce a warning. Input matrices are subjected to EnsureMatrix.