Usage
# S3 method for HLfit
simulate(object, nsim = 1, seed = NULL, newdata=NULL,
conditional=FALSE, verbose=TRUE,
sizes=object$weights,...)
# S3 method for HLfitlist
simulate(object, nsim = 1, seed = NULL,
newdata=object[[1]]$data, sizes=object[[1]]$weights,...)
Arguments
object
The return object of HLfit or similar function.
nsim
number of response vectors to simulate. Defaults to '1'.
seed
A seed for set.seed
. If such a value is provided, the initial state of the random number generator at a global level
is restored on exit from simulate.
newdata
A data frame closely matching the original data, except that response values are not needed. May provide new values of fixed predictor variables, new spatial locations, or new individuals within a block.
conditional
Boolean, for development purposes. Currently only unconditional simulation is handled.
verbose
Boolean; whether to print some information or not.
sizes
A vector of sample sizes to simulate in the case of a binomial fit. Defaults to the sizes in the original data.
…
further arguments passed to or from other methods.