powered by
Generate simple randomization treatment assignments
car_sr(n, p_trt)
A vector of treatment assignments as 0's and 1's based on simple randomization.
Number of observations
Proportion allotted to treatment
car_sr(10, p_trt=0.4)
Run the code above in your browser using DataLab