Learn R Programming

whatifbandit (version 0.3.0)

get_assignment_quantitites: Calculates Number of Observations Assigned to Each Treatment

Description

Takes the output from mab_simulation(), and calculates the number of observations assigned to each treatment group in the adaptive trial.

Usage

get_assignment_quantities(simulation, conditions)

Value

Named numeric vector containing number of observations assigned to each treatment group

Arguments

simulation

Output from mab_simulation()

conditions

Character vector containing the names of all the treatment conditions in the trial.