Very simple wrapper for DescTools::SomersDelta.

ord_somers_d(x, y = NULL, symmetric = FALSE, reverse = FALSE)

Arguments

x

Dependent variable. Alternatively a table.

y

Independent variable

symmetric

If TRUE, symmetric D is returned. Default is FALSE.

reverse

If TRUE, row and column variable are switched. Default is FALSE, meaning the row variable is considered dependant.

Value

numeric value

Examples

ord_somers_d(ngo$abschalt, ngo$geschl)
#> [1] -0.1463415