Learn R Programming

sdcTarget (version 0.9-11)

sdcSubstitutionMatrixClass-class: S4 Substitution Matrix

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

## S3 method for class '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

Methods (by generic)

  • initialize:

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.

See Also

sdcTargetMatrixClass,

Examples

Run this code
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)))

Run the code above in your browser using DataLab