GetParamInfoFromAdjustSpec: GetParamInfoFromAdjustSpec

Description Usage Arguments Value Examples

View source: R/GetParamInfoFromAdjustSpec.R

Description

Extract parameters from an adjustment specification. Values are provided as a list.

Usage

1
GetParamInfoFromAdjustSpec(paramSpecs, infoType = "value")

Arguments

paramSpecs

List of parameter specifications. Required.

infoType

Type of information to extract from the parameter specification. Optional. Default = "value".

Value

List of parameters of shape [paramName] = [paramValue]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
paramSpecs <- list(
  nimp = list(
    label = "Number of imputations",
    input = "numeric",
    value = 2
  )
)
GetParamInfoFromAdjustSpec(paramSpecs)
# $nimp
# [1] 2

GetParamInfoFromAdjustSpec(paramSpecs, infoType = "label")
GetParamInfoFromAdjustSpec(paramSpecs, infoType = "input")

nextpagesoft/hivEstimatesAccuracyReloaded documentation built on March 14, 2020, 7:06 a.m.