This function summarizes recommendations for multicategory treatment setup from the results of binary treatment comparisons, using the majority voting approach.
summarize_rec(data, pred)
data | a data frame containing the ID ( |
---|---|
pred | a matrix with |
A data frame with the following 4 columns:
ID
: IDs of subjects, same as those in data
.
reward
: outcome values of subjects, same as those in data
.
treatment
: observed treatments of subjects, same as those in data
.
vote
: recommended treatments of subjects that are summarized from pred
using the majority voting approach.