powered by
cat_check checks whether a vector contains only 0 and 1 and thus is a dummy variable.
cat_check
cat_check(x)
TRUE, if the vector only contains 0 and 1, FALSE is the vector contains other values.
vector containing values of a variable.