Learn R Programming

TSQCA (version 1.3.1)

qca_bin: Binary calibration helper for TSQCA

Description

Converts a numeric vector into a crisp set (0/1) based on a threshold.

Usage

qca_bin(x, thr)

Value

Integer vector of 0/1 with the same length as x.

Arguments

x

Numeric vector.

thr

Numeric scalar. Cases with x >= thr are coded as 1, others as 0.