RegSDCaddGen: Regression-based SDC Tools - Synthetic addition

View source: R/RegSDCadd.R

RegSDCaddGenR Documentation

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

Details

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

Value

Generated version of y

Author(s)

Øyvind Langsrud


RegSDC documentation built on Aug. 19, 2022, 9:08 a.m.

Related to RegSDCaddGen in RegSDC...