Deprecated Integerize probability columns by sampling#' @description Converts groups of probability columns to binary indicators by sampling, ensuring each row sums to 1. Use for multinomial assignment from probabilities.
integerize_probs.RdDeprecated Integerize probability columns by sampling#' @description Converts groups of probability columns to binary indicators by sampling, ensuring each row sums to 1. Use for multinomial assignment from probabilities.
Details
DEPRECATED. Use
integerize()or other supported utilities for integerization.This function is deprecated and not used elsewhere in the package.
Identifies columns by pattern and samples one per row.
Sets sampled column to 1, others to 0.
Returns data.table with binary columns.
Assumes input is a data.table and probabilities sum to 1.
See also
integerize
Other weighting utilities:
integerize()