Wrapper to generate probabilities. The wrapper calls runChecksOnSelectionAndProbs which main tests need to be passed before probabilities can be calculated. The it calls generateProbs for each sample in each sampling level of the hierarchy.

applyGenerateProbs(
  x,
  probType,
  overwrite,
  runInitialProbChecks = TRUE,
  strict = TRUE
)

Arguments

x
  • RDBES data object

probType
  • string. Can be set to "selection" (only selection probabilities are calculated), "inclusion" (only inclusion probabilities are calculated) or "both" (both types of probabilities are calculated)

overwrite
  • if TRUE will overwrite probabilities already existing for SRSWR and SRSWOR

runInitialProbChecks
  • if TRUE runs runChecksOnSelectionAndProbs

strict

(Optional) This function validates its input data - should the validation be strict? The default is TRUE.

Value

a list of all the RDBES data tables with probabilites calculated

Examples

# To be added