This page details the version history of the development version of survsim
, hosted on this website, which can be installed by typing in Stata,
net install survsim, from(https://www.mjcrowther.co.uk/code/survsim)
or updated by typing adoupdate survsim
.
24aug2020 version 4.0.4
- re-syncing with new
predictms
(multistate
version 3.0.0) formerlin
model simulation - bug fix in missing value warning text; now fixed
25may2020 version 4.0.3
- efficiency of
_msm
improved - bug fix: Stata variables in user-defined hazard functions not parsed correctly; now fixed
30mar2020 version 4.0.2
- bug fix; missing value issue when t = 0 internally, now fixed
- bug fix; indexing issue occurred in varied circumstances, now fixed
29mar2020 version 4.0.1
- bug fix; error in
distribution(gompertz)
when specified in ahazard#()
, now fixed - help file edits
26mar2020 version 4.0.0
- computation time reduced by about 70% for multi-state model simulation
reset
added tohazard#()
for semi-Markov models- syntax changed for user-defined functions,
#t
now{t}
for more robust parsing - support for general multiple timescales, including:
{t0}
can be used inuser()
andtdefunction()
for time of entry into initial state for associated transition
cr
subclass removed, now part of generalmsm
syntax- bug fix; variables used directly in
user()
with a multi-state model were not passed to Mata -> now fixed - bug fix; if the same variable was used in multiple
hazard#()
s, parsing would only pick up the first -> now fixed
24mar2020 version 3.1.0
- general Markov multi-state simulation now added
transmatrix()
option added- tolerance changed to 0 from 1e-08 in
mm_root()
21mar2020 version 3.0.0
- complete re-write of core code
- can now simulate from a fitted
merlin
survival model - can now simulate from cause-specific hazards competing risks models, with either parametric or user-defined hazard functions, with a new syntax
distribution()
now required for parameteric modelsltruncated()
added, can be a number orvarname
, synced with all exceptmerlin
model simulationmaxtime()
can now be a number or avarname
- help files completely re-written
- added error report on missing values when general algorithm used
- parsing made more robust
18dec2013 version 2.0.3
tde()
withlogcumhazard()
orcumhazard()
caused an error. Now fixed.
10oct2013 version 2.0.2
- bug fix ->
exact
option added to confirm vars
08jul2013 version 2.0.1
- minor bug fix in
mixture
model
04jan2013 version 2.0.0
maxtime()
added to specify maximum generated survival time and event indicatorn()
removed so must set obsloghazard()
andhazard()
added for user-defined hazard functions, simulated using quadrature and root finding- default
centol()
changed to 1E-08 - varnames can now appear in
loghazard()
/hazard()
allowing time-dependent covariates mixture
model now uses Brent’s method -> much more reliable than NR, and allowstde()
scumhazard()
andlogcumhazard()
now added which just use root finding
15Nov2011 version 1.1.2
- Fixed bug when generating covariate tempvars with competing risks.
20sep2011 version 1.1.1
- Exponential distribution added.
10sep2011 version 1.1.0
- Added Gompertz distribution. Time-dependent effects available for all models except mixture.
showerror
option added.
09sep2011 version 1.0.1
- Time dependent effects now allowed for standard Weibull.