Diff of /man/simulate-methods.Rd [000000] .. [f2e496]

Switch to unified view

a b/man/simulate-methods.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/simulate.R
3
\docType{methods}
4
\name{simulate}
5
\alias{simulate}
6
\alias{simulate,ANY,missing,missing-method}
7
\alias{simulate,EventModel,EventData,missing-method}
8
\alias{simulate,EventModel,missing,FromDataSimParam-method}
9
\alias{simulate,EventModel,missing,missing-method}
10
\alias{simulate,missing,EventData,FromDataSimParam-method}
11
\title{The simulate methods for EventPrediction package}
12
\usage{
13
\S4method{simulate}{ANY,missing,missing}(object, data, SimParams, ...)
14
15
\S4method{simulate}{EventModel,missing,missing}(object, data, SimParams, ...)
16
17
\S4method{simulate}{EventModel,EventData,missing}(object, data, SimParams, ...)
18
19
\S4method{simulate}{EventModel,missing,FromDataSimParam}(object, data,
20
  SimParams, ...)
21
22
\S4method{simulate}{missing,EventData,FromDataSimParam}(data, SimParams,
23
  accrualGenerator = NULL, Naccrual = 0, Nsim = 10000, seed = NULL,
24
  limit = 0.05, longlagsettings = NULL, HR = NULL, r = NULL,
25
  dropout = NULL)
26
}
27
\arguments{
28
\item{object}{An \code{EventModel} object which contains both the data (slot event.data) and
29
the simulation parameters (slot simParams). If not stats::simulate will be called}
30
31
\item{data}{If used then this \code{EventData} object will be used when performing the simulations
32
instead of the \code{EventData} object within \code{fit}}
33
34
\item{SimParams}{A \code{FromDataSimParam} object, 
35
overrides the simulated parameters from the \code{EventModel} object}
36
37
\item{...}{Additional arguments to be passed to the method}
38
39
\item{accrualGenerator}{An AccrualGenerator object used for recruiting additional subjects}
40
41
\item{Naccrual}{The number of additional subjects to be recruited}
42
43
\item{Nsim}{Number of simulations to run}
44
45
\item{seed}{Integer for random number generator (for reproducability) By default NULL.}
46
47
\item{limit}{Limit for the percentiles, default is 0.05 which corresponds
48
to [0.05, 0.95]}
49
50
\item{longlagsettings}{A LongLagSettings object to control the behaviour of the algorithm for subjects whos last date
51
is a long time from the analysis date. Using this argument can have a large impact on the results - see vignette for further details}
52
53
\item{HR}{The hazard ratio: an advanced option which allows two arm trials to be simulated. This replicates the 
54
Predict from parameters functionality but uses the recruitment times found in \code{data}. See the vignette for
55
further details}
56
57
\item{r}{The allocation ratio: see \code{HR} argument.}
58
59
\item{dropout}{if subjects drop out in study (due to competing risks not as there is a finite follow up time)
60
then this argument should contain a list with proportion and time and optionally shape i.e.
61
\code{dropout=list(proportion=0.03,time=365,shape=1.2)} meaning in the absence of events 3% of subjects
62
will have dropped out after 365 days with a Weibull hazard rate with shape=1.2. If shape is not included then 
63
it defaults to 1 (exponential rate). If dropout is NULL then no subjects will drop out}
64
}
65
\value{
66
A \code{FromDataResults} object
67
}
68
\description{
69
These methods are for the predict from data part of the package 
70
and simulate. All functions described here are wrappers for the
71
missing,missing,EventData,FromDataSimParams-method
72
}
73
\details{
74
See the stats::simulate method for details of the stats simulate function
75
}
76