util_prep_proportion_check {dataquieR}R Documentation

Utility function to prepare the metadata for proportion checks

Description

Utility function to prepare the metadata for proportion checks

Usage

util_prep_proportion_check(
  resp_vars,
  meta_data,
  ds1,
  report_problems = c("error", "warning", "message"),
  label_col = attr(ds1, "label_col")
)

Arguments

resp_vars

variable list the names of the measurement variables

meta_data

data.frame the data frame that contains metadata attributes of study data

ds1

data.frame the data frame that contains the measurements (hint: missing value codes should be excluded, so the function should be called with ds1, if available)

report_problems

enum Should missing metadata information be reported as error, warning or message?

label_col

variable attribute the name of the column in the metadata with labels of variables

Value

a list with the expected range for the proportion check

See Also

Other lookup_functions: util_prep_location_check(), util_variable_references()


[Package dataquieR version 2.5.1 Index]