# NOT RUN {
# Two-arm Designs
Z <- complete_ra(N = 100)
table(Z)
Z <- complete_ra(N = 100, m = 50)
table(Z)
Z <- complete_ra(N = 100, prob = .111)
table(Z)
Z <- complete_ra(N = 100, condition_names = c("control", "treatment"))
table(Z)
# Multi-arm Designs
Z <- complete_ra(N = 100, num_arms = 3)
table(Z)
Z <- complete_ra(N = 100, m_each = c(30, 30, 40))
table(Z)
Z <- complete_ra(N = 100, prob_each = c(.1, .2, .7))
table(Z)
Z <- complete_ra(N = 100, condition_names = c("control", "placebo", "treatment"))
table(Z)
# Special Cases
# Two-arm trial where the condition_names are by default "T1" and "T2"
Z <- complete_ra(N = 100, num_arms = 2)
table(Z)
# If N = m, assign with 100% probability...
complete_ra(N=2, m=2)
# except if N = m = 1, in which case assign with 50% probability
complete_ra(N=1, m=1)
# }
Run the code above in your browser using DataLab