Skip to contents

Check the Global Diet Quality Score variable

Usage

eiod_check_gdqs(gdqs, cutoff = 23, max_score = 49)

Arguments

gdqs

Numeric vector of GDQS values.

cutoff

The healthy-diet threshold, default 23.

max_score

The maximum attainable score, used for the range check. Default 49.

Value

An object of class `eiod_check`.

Examples

data(eiod_demo)
eiod_check_gdqs(eiod_demo$gdqs)
#> reiod data quality report
#> 
#>   ERROR    0
#>   WARNING  0
#>   NOTE     2
#> 
#>   NOTE     gdqs           missing      8 missing (1.3%); HESD and HDLEI will be NA for these.
#>   NOTE     gdqs           range        range 12.1 to 37.9; 59.1% at or above the cutoff of 23.
#> 
#>   No blocking problems.