Please refer example in Roxygen2 to check if it meet the goal.
One issue I had is about the enrollRate and failRate.
Should I update the value in enrollRate and failRate after calculating the sample size? In gsDesign, the valuate is treated as ratio instead of actual enrollment rate, because the sample size is determined by power.
I saw you update Power in your example. It confuse me whether you are calculating sample size or power.
Please refer example in Roxygen2 to check if it meet the goal.
One issue I had is about the
enrollRate
andfailRate
.Should I update the value in
enrollRate
andfailRate
after calculating the sample size? IngsDesign
, the valuate is treated as ratio instead of actual enrollment rate, because the sample size is determined by power.I saw you update Power in your example. It confuse me whether you are calculating sample size or power.