library(SampleSelectR)
N <- (2:5)^3
n <- allocate("power", N, n.samp=99, power=1/3)
#> Sample allocation of 99 using power with the relevant inputs:
#> N.h = 8, 27, 64, 125
#> power = 0.333333333333333
#>
#> Output:
#> 15, 21, 28, 35
N
#> [1] 8 27 64 125
n
#> [1] 15 21 28 35
n > N
#> [1] TRUE FALSE FALSE FALSE
Created on 2025-10-21 with reprex v2.1.1