Closed grlm1 closed 10 months ago
Hi Tim,
Thank you for your interest in rpact and pointing out this issue. In fact, you find a bug and the non-inferiority bound is not taken into account in the sample size reassessment procedure (at least, the output is not correct). The bug will be fixed as quickly as possible.
Concerning your second question: the test statistic in the simulation output is adjusted according to the direction of the alternative. If you want to use it in getStageResults you should either withdraw the adjustment or set directionUpper = TRUE.
Hope this helps, we will inform you when the correction will be available on GitHub.
Kind regards, Gernot and Friedrich
Hi! First of all thank you for this very nice and needed package!
I am trying to simulate an adaptive design using the function
getSimulationSurvival()
. I would also like to usethetaH0=0.9
instead of the defaultthetaH0=1
. I am wondering if this parameter is respected during the simulation and/or in the results.Since I would like to adapt the simulation manually (specifically, restart subject accrual at the timing of the interim based on conditional power and/or pi2), I tried to replicate scenarios from the simulation data using the smaller functions
getStageResults()
andgetConditionalPower()
.which gives me
Plugging in the results of the
getSimulationSurvival()
interim analysis result intogetDataset()
followed bygetStageResults()
andgetConditionalPower()
to the best of my ability:Comparing the results for reported conditional power:
which made me suspect that the reported conditional power of
getSimulationSurvival()
does not respect the thetaH0 parameter. Or is$conditionalPower
not to be confused with$conditionalPowerAchieved
? Additionally, why do I need to plug in the negative LR statistic into thegetStageResults(getDataset())
function? I suspect the reason is thedirectionUpper
argument, but I fail to see why thegetSimulationSurvival()
does not report the negative LR's that I would expect for HR's < 1.Thank you!