Ignoring a 6-month delayed onset inflates the apparent treatment
effect and underestimates the required sample size.
power_pmrm() simulates the full operating
characteristic:
p <- power_pmrm(n_per_arm = 100, effect_size = -0.5, delay = 6,
n_sims = 50, seed = 1)
p[c("power", "bias", "non_convergence_rate")]
#> $power
#> [1] 1
#>
#> $bias
#> [1] -0.01605068
#>
#> $non_convergence_rate
#> [1] 0Search a grid of sample sizes (keep simulations small for the demo):