View source: R/utils-simdata-car.R
car_sr | R Documentation |
Generate simple randomization treatment assignments
car_sr(n, p_trt)
n |
Number of observations |
p_trt |
Proportion allotted to treatment |
A vector of treatment assignments as 0's and 1's based on simple randomization.
car_sr(10, p_trt=0.4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.