Usage
simEpidataCS(endemic, epidemic, siaf, tiaf, qmatrix, rmarks,
    events, stgrid, tiles, beta0, beta, gamma, siafpars, tiafpars,
    t0 = stgrid$start[1], T = tail(stgrid$stop,1), nEvents = 1e5,
    control.siaf = list(F=list(), Deriv=list()),
    W = NULL, trace = 5, nCircle2Poly = 32, gmax = NULL, .allocate = 500,
    .skipChecks = FALSE, .onlyEvents = FALSE)## S3 method for class 'twinstim':
simulate(object, nsim = 1, seed = NULL, data, tiles,
    rmarks = NULL, t0 = NULL, T = NULL, nEvents = 1e5,
    control.siaf = object$control.siaf,
    W = NULL, trace = FALSE, nCircle2Poly = NULL, gmax = NULL,
    .allocate = 500, simplify = TRUE, ...)
Arguments
endemic
see twinstim. Note that type-specific endemic
    intercepts are specified by beta0 here, not by the term
    (1|type). epidemic
see twinstim. Marks appearing in this formula must
    be returned by the generating function rmarks. siaf
see twinstim.
    In addition to what is required for fitting with twinstim,
    the siaf specification must also contain the element
    simulate, a function which d qmatrix
see epidataCS. Note that this square
    matrix and its dimnames determine the number and names of the
    different event types. In the simplest case, there is only a single
    type of even rmarks
function of single time (1st arg) and location
    (2nd arg) returning a one-row data.frame of marks (named
    according to the variables in epidemic) for an event at this
    point. This must include the columns eps.s
events
NULL or missing (default) in case of an empty prehistory,
    or a SpatialPointsDataFrame containing events of the
    prehistory (-Inf;t0] of the process (required stgrid
see as.epidataCS. Simulation only works inside the spatial
    and temporal range of stgrid. tiles
object inheriting from SpatialPolygons with row.names equal
    to the tile names in stgrid and having the same
    proj4string as events and W. This is necessary
 
beta0,beta,gamma,siafpars,tiafpars
these are the parameter subvectors of the twinstim.
    beta and gamma must be given in the 
    same order as they appear in endemic and epidemic,
    respectively. beta0 is ei
t0
events having occured during (-Inf;t0] are regarded as part of the
    prehistory $H_0$ of the process. The time point t0 must be an element
    of stgrid$start. For simEpidataCS, by default, and
    als
T, nEvents
simulate a maximum of nEvents events up to time T,
    then stop. For simEpidataCS, by default, and also if
    T=NULL, T equals the last stop time in stgrid
    (it cannot be g
W
see as.epidataCS. Must have the same
    proj4string as events and tiles. If not
    specified (NULL), W is generated 
    automatically trace
logical (or integer) indicating if (or how often) the current
    simulation status should be cated.  For the
    simulate.twinstim method, trace currently only applies
    to the first of the nsim simul
.allocate
number of rows (events) to initially allocate for the event history;
    defaults to 500.  Each time the simulated epidemic exceeds the
    allocated space, the event data.frame will be enlarged by
    .allocate rows.
.skipChecks,.onlyEvents
these logical arguments are not meant to be set by the user.
    They are used by the simulate-method for twinstim objects.
nsim
number of epidemics (i.e. spatio-temporal point patterns inheriting
    from class "epidataCS") to simulate.  Defaults to 1 when the
    result is a simple object inheriting from class
    "simEpidataCS" (as if simEpidataCS
seed
an object specifying if and how the random number generator should be
    initialized (seeded). By default (NULL), the state of the random
    generator is not changed and the value of .Random.seed prior to
    simulation is stor
data
an object of class "epidataCS", usually the one to which the
    "twinstim" object was fitted.
simplify
logical. It is strongly recommended to set simplify = TRUE
    (default) if nsim is large. This saves space and computation time,
    because for each simulated epidemic only the events component is
    saved. All ot
nCircle2Poly
see as.epidataCS. For
    simulate.twinstim, NULL means to use the same value as
    for data. gmax
maximum value the temporal interaction function
    tiaf$g can attain. If NULL, then it is assumed as the
    maximum value of the type-specific values at 0, i.e.
    max(tiaf$g(rep.int(0,nTypes), tiafpars, 1:nTypes))
...
unused (arguments of the generic).