Get all combinations of dose indices

get_dose_combo_indices(num_doses)

Arguments

num_doses

integer vector of number of doses for length(num_doses) treatments

Value

a list, each element being an integer vector

Examples

get_dose_combo_indices(num_doses = c(1, 2))
#> [[1]]
#> [1] 1 1
#> 
#> [[2]]
#> [1] 1 2
#> 
# returns list(c(1, 1), c(1, 2))