Description Usage Arguments Details Value
These methods are for the predict from data part of the package and simulate. All functions described here are wrappers for the missing,missing,EventData,FromDataSimParams-method
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## S4 method for signature 'ANY,missing,missing'
simulate(object, data, SimParams, ...)
## S4 method for signature 'EventModel,missing,missing'
simulate(object, data, SimParams, ...)
## S4 method for signature 'EventModel,EventData,missing'
simulate(object, data, SimParams, ...)
## S4 method for signature 'EventModel,missing,FromDataSimParam'
simulate(object, data,
SimParams, ...)
## S4 method for signature 'missing,EventData,FromDataSimParam'
simulate(data, SimParams,
accrualGenerator = NULL, Naccrual = 0, Nsim = 10000, seed = NULL,
limit = 0.05, longlagsettings = NULL, HR = NULL, r = NULL,
dropout = NULL)
|
object |
An |
data |
If used then this |
SimParams |
A |
... |
Additional arguments to be passed to the method |
accrualGenerator |
An AccrualGenerator object used for recruiting additional subjects |
Naccrual |
The number of additional subjects to be recruited |
Nsim |
Number of simulations to run |
seed |
Integer for random number generator (for reproducability) By default NULL. |
limit |
Limit for the percentiles, default is 0.05 which corresponds to [0.05, 0.95] |
longlagsettings |
A LongLagSettings object to control the behaviour of the algorithm for subjects whos last date is a long time from the analysis date. Using this argument can have a large impact on the results - see vignette for further details |
HR |
The hazard ratio: an advanced option which allows two arm trials to be simulated. This replicates the
Predict from parameters functionality but uses the recruitment times found in |
r |
The allocation ratio: see |
dropout |
if subjects drop out in study (due to competing risks not as there is a finite follow up time)
then this argument should contain a list with proportion and time and optionally shape i.e.
|
See the stats::simulate method for details of the stats simulate function
A FromDataResults
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.