| prepare_dat_bin | R Documentation |
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
)
dat |
Original data frame. |
outcome_clean |
Character. Outcome variable name (without |
conditions |
Character vector. Condition variable names. |
thrY |
Numeric. Threshold for outcome binarization. |
thrX_vec |
Named numeric vector. Thresholds for conditions. |
pre_calibrated |
Character vector or NULL. Names of pre-calibrated variables to pass through without binarization. |
Data frame with column Y (binarized outcome) and condition
columns (binarized or passed through).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.