AttributeRisk: AttributeRisk

Description Usage Arguments Value

View source: R/multiproduct.R

Description

Calculates the attribute disclosure risk for sequentially synthesized datasets. Categorical variables are identified either by factors or by the categorical arg. If strange/unexpected behavior is seen with factors, try identifying categorical variables with the additional argument and remove factors from the dataset.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
AttributeRisk(
  modelFormulas,
  origdata,
  syndata,
  posteriorMCMCs,
  syntype,
  H = 50,
  G = 11,
  percentBounds = c(0.1, 0.1),
  additiveBounds = NULL,
  bounds = NULL,
  guesses = NULL,
  simplePrior = NULL,
  categorical = NULL
)

Arguments

modelFormulas

A list of synthesis formulas, or formula like objects (bf for example), in order of synthesis.

origdata

A dataframe of the confidential dataset.

syndata

A list of the synthetic dataset(s).

posteriorMCMCs

A list, in order of synthesis, of the MCMC parameter draws.

syntype

A vector, in order of synthesis, of strings describing the synthesis model. Currently supported models are: norm, binom, multinom, and pois.

H

A scalar determining the amount of iterations. Higher values provide a more accurate estimate but will take longer to compute.

G

A vector, in order of synthesis, or a scalar describing the number of guesses (including the confidential value) to evaluate. In the case of a scalar G, that value will be applied to all continuous variables.

percentBounds

A two element vector determining the lowest and highest guesses. By default the lowest and highest guesses will be 10% below and 10% above the confidential value respectively.

additiveBounds

A two element vector determining the lowest and highest guesses. The lowest guess will be the confidential value minus the first value while the highest will be the confidential value plus the second value.

bounds

A two element vector determining the lowest and highest guesses. These guess values are set to be the values from this vector.

guesses

A list, in order of synthesis, containing vectors of guesses for each synthesized variable.

simplePrior

A scalar determining how much more (or less) likely the confidential value is believed to be guessed.

categorical

A vector, in order of synthesis, of booleans denoting if the synthesized variable is to be treated as categorical (guesses set to all values seen in the dataset).

Value

a list of lists (one for each record), where each inner list contains the following:


RyanHornby/AttributeRisk documentation built on Aug. 12, 2021, 3:18 p.m.