simulate: Simulate responses

Description Usage Arguments Value See Also Examples

Description

Simulate data according to given parameters.

NOTE: This man page is for the simulate S4 generic function defined in the methsim package. See ?statistics::simulate for the default method (defined in the statistics package). Other packages can define specific S4 methods for objects not supported by the default method.

Usage

1
simulate(object, nsim = 1, seed = NULL, ...)

Arguments

object

an object representing the simulation parameters.

nsim

number of responses to simulate. Defaults to 1.

seed

an object specifying if and how the random number generator should be initialized ('seeded'). Either NULL or an integer that will be used in a call to base::set.seed before simulating the responses. If set, the value is saved as the "seed" attribute of the returned value. The default, NULL will not change the random generator state, and return base::.Random.seed as the "seed" attribute, see 'Value'.

...

additional optional arguments.

Value

See ?stats::simulate for the value returned by the default method.

Specific methods defined in other packages should behave as consistently as possible with the default method.

See Also

Examples

1
2
3
4
## Not run: 
# TODO

## End(Not run)

PeteHaitch/methsim documentation built on May 8, 2019, 1:32 a.m.