PackageSpecs {GaussSuppression}R Documentation

Function for viewing built-in GaussSuppression specs

Description

Functions to retrieve the built-in specs. These can be retrieved using either numerical indices or by specifying the spec name, see Details.

Usage

PackageSpecs(x = NULL, printTable = FALSE)

Arguments

x

the character name or index of the spec to be returned. If NULL (default), returns list of all specs

printTable

Logical value (default FALSE). If TRUE, prints a table description of all specs. Primarily used for documentation purposes.

Details

The following table summarizes the built-in specs. Columns represent different specs, and rows represent the parameter settings.

smallCountSpec dominanceSpec fewContributorsSpec kDisclosureSpec
primary PrimaryDefault MagnitudeRule NContributorsRule KDisclosurePrimary
protectZeros TRUE FALSE FALSE FALSE
candidates CandidatesDefault CandidatesNum CandidatesNum DirectDisclosureCandidates
singleton SingletonDefault SingletonUniqueContributor SingletonUniqueContributor SingletonDefault
extend0 TRUE FALSE FALSE TRUE
preAggregate is.null(freqVar) !is.null(charVar) !is.null(charVar) is.null(freqVar)
extraAggregate FALSE TRUE TRUE FALSE
secondaryZeros FALSE FALSE FALSE 1
domWeightMethod "default"
singletonMethod "numttHTT" "numttHTT" "anySumNOTprimary"

Value

returns a spec (if !is.null(x)), list of all specs (if is.null(x) and printTable = FALSE), or markdown table describing all specs (if printTable = TRUE).

Examples

PackageSpecs()
PackageSpecs(1)
PackageSpecs("smallCountSpec")
PackageSpecs(printTable = TRUE)

[Package GaussSuppression version 0.8.8 Index]