sdcSubstitutionMatrixClass-class: S4 Substitution Matrix

Description Usage Arguments Details Methods (by generic) Slots See Also Examples

Description

The substitution matrix is a matrix with the same dimensions as the data from which it is derived, that indicates which elements are to be subjected to a statistical disclosure control process.

Usage

1
2
## S4 method for signature 'sdcSubstitutionMatrixClass'
initialize(.Object, ...)

Arguments

.Object

An sdcSubstitutionMatrixClass object.

...

The optional parameters specifying the basis of the substitution matrix. These include an indicator of forwards or backwards matrix calculation (forwards), a cutoff value relative to entries in the target matrix (cutoff), and the target matrix basis for the calculation (T).

Details

The substitution matrix is calculated from a target matrix. Specification of forwards direction with a cutoff of 0 results in a complete data synthesis substitution matrix. Specification of forwards direction with a cutoff of 1, or backwards direction with a sufficiently large cutoff, results in the maximum partial synthesis substitution matrix. Specification of backwards direction with a cutoff of 1 results in the minimum partial synthesis substitution matrix. Maximum partial synthesis is the default.

Methods (by generic)

Slots

.Data

A matrix.

forwards

Indicates the direction in which to process the target matrix. Defaults to TRUE.

cutoff

Cutoff with respect to which an element in the target matrix should be indicated for substitution. Default value is 1.

T

A target matrix object.

See Also

sdcTargetMatrixClass,

Examples

1
2
3
4
5
set.seed(256)
my.X <- data.frame(matrix(ifelse(runif(500)>.5, TRUE, FALSE), ncol = 5))
my.smc <- new("sdcSubstitutionMatrixClass",
              T = new("sdcTargetMatrixClass",
                      Tdef = new("sdcTargetDefinitionClass", X = my.X)))

sdcTarget documentation built on May 2, 2019, 8:16 a.m.