
Compute Optimal Number of Treatments/Controls
Source:R/greedy_search.R
optimize_asymmetric_treatment_assignment.RdGiven a total budget and asymmetric treatment and control costs, calculate the number of treatments and controls that optimize the variance of the estimator. The number of treatments is rounded up by default.
Usage
optimize_asymmetric_treatment_assignment(
c_treatment = NULL,
c_control = NULL,
c_total_max = NULL,
n = NULL
)Arguments
- c_treatment
The cost of a treatment assignment. Default is
NULLfor symmetric costs.- c_control
The cost of a control assignment. Default is
NULLfor symmetric costs.- c_total_max
The total cost constraint of any allocation. Either this or
nmust be specified. Default isNULL.- n
The total cost constraint as specified by the total number of subjects. Either this or
c_totalmust be specified. Default isNULL.