Constructs the data frame to be passed to QCA::truthTable().
For pre-calibrated variables, the original values are passed through
without binarization. For all other variables, qca_bin() is applied.
prepare_dat_bin(
dat,
outcome_clean,
conditions,
thrY,
thrX_vec,
pre_calibrated = NULL
)Data frame with column Y (binarized outcome) and condition
columns (binarized or passed through).
Original data frame.
Character. Outcome variable name (without ~).
Character vector. Condition variable names.
Numeric. Threshold for outcome binarization.
Named numeric vector. Thresholds for conditions.
Character vector or NULL. Names of pre-calibrated variables to pass through without binarization.