For speed, uses a response feature analysis rfeat(); this will likely underestimate
power somewhat.
Examples
res <- tumr_power(8, 2, 10)
#>
|
| | 0%
|
|======= | 10%
|
|============== | 20%
|
|===================== | 30%
|
|============================ | 40%
|
|=================================== | 50%
|
|========================================== | 60%
|
|================================================= | 70%
|
|======================================================== | 80%
|
|=============================================================== | 90%
|
|======================================================================| 100%
mean(res$p < 0.05)
#> [1] 1