I'm trying to use projected enrollment counts for simulating a trial with count endpoint by specifying a piecewise acrualIntensity
and accrualTime
. This works well with getSimulationSurvival
. However for counts I get the error below. I am using rpact 4.2.0.
I briefly looked in the code to see if I was specifying something wrong and noticed a possible divide by 0 case which would occur if intensity drops to 0 at some time.
Code:rpact::getSimulationCounts( theta = 1.8, lambda2 = 0.2, followUpTime = 24, maxNumberOfIterations = 10, accrualTime = c(0, 1, 2), accrualIntensity = c(5, 15), overdispersion = 2 )Error:
Error in seq.default(0, accrualTime, length.out = n1) : 'to' must be of length 1Divide by 0:
rpact::getSimulationCounts( theta = 1.8, lambda2 = 0.2, followUpTime = 24, maxNumberOfIterations = 10, accrualTime = c(0, 1, 2, 3), accrualIntensity = c(5, 0, 15), overdispersion = 2 )Error:
Error in seq.default(accrualTime[i - 1] + 1/accrualIntensity[i], accrualTime[i], : 'from' must be a finite number
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4