estimateParams
estimates parameters of exponential and Weibull transition hazards using maximum likelihood for a given data set after usingprepareData
.corTrans
calculates the correlation between PFS and OS for a given set of transition hazards, andcorPFSOS
estimates this correlation for a given data set, optionally with a bootstrap based confidence interval.
ExpSurvOS
now returns 0 instead of NaN for large values of t.WeibSurvOS
now does not return an error for large values of t.PWCSurvOS
now does not return an error for large values of t. It also no longer returns values larger than 1. It is significantly faster, based on a closed form calculation instead of numerical integration.getSimulatedData
now also works when there are no transitions from progression to death, similarly forgetOneClinicalTrial
(which now warns if there are no such transitions at all).corPFSOS
now undoes thefuture
plan upon function exit.
PwcOSInt
,integrateVector
,WeibOSInteg
are no longer exported, and only used internally.- Renamed piecewise constant hazards function to
getPWCHazard
(previouslygetPCWHazard
).
- First CRAN version of the package.
- The package simulates illness-death models with constant, Weibull or piecewise constant transition hazards.
- Exponentially, Weibull and piecewise exponentially distributed survival times.
- Random censoring and event-driven censoring after a pre-specified number of PFS or OS events.
- Arbitrary number of treatment arms and flexible randomization ratio.
- Staggered study entry.
- Derivation of PFS and OS survival functions from transition hazards.