powered by
Converts a numeric vector into a crisp set (0/1) based on a threshold.
qca_bin(x, thr)
Integer vector of 0/1 with the same length as x.
x
Numeric vector.
Numeric scalar. Cases with x >= thr are coded as 1, others as 0.
x >= thr