Function to easily set the response coding used in the GDS data.

gds_values(yes = 1, no = 0)

Arguments

yes

value indicating a positive answer

no

value indicating a negative answer

Value

list of yes and no values

See also

Other gds_functions: gds_alter_values(), gds_binary(), gds_compute_sum()

Examples

gds_values()
#> $yes
#> [1] 1
#> 
#> $no
#> [1] 0
#> 
gds_values(yes = "YES", no = "NO")
#> $yes
#> [1] "YES"
#> 
#> $no
#> [1] "NO"
#>