Very simple wrapper for DescTools::Lambda.

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

Arguments

x

Dependent variable. Alternatively a table.

y

Independent variable

symmetric

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

reverse

If TRUE, row and column variable are switched.

Value

numeric value

Examples

nom_lambda(ngo$abschalt, ngo$geschl)
#> [1] 0.02777778