A simulate Method for formula objects that dispatches based on the Left-Hand Side
This method evaluates the left-hand side (LHS) of the given formula and dispatches it to an appropriate method based on the result by setting an nonce class name on the formula.
## S3 method for class 'formula' simulate(object, nsim = 1, seed = NULL, ..., basis, newdata, data) ## S3 method for class 'formula_lhs' simulate(object, nsim = 1, seed = NULL, ...)
object |
a one- or two-sided |
nsim, seed |
number of realisations to simulate and the random
seed to use; see |
... |
additional arguments to methods. |
basis |
if given, overrides the LHS of the formula for the purposes of dispatching. |
newdata, data |
if passed, the The dispatching works as follows:
A "method" to receive a formula whose LHS evaluates to CLASS
can therefore be implemented by a function
|
simulate.formula_lhs
: A function to catch the situation when there is no method implemented for the class to which the LHS evaluates.
simulate.ergm()
family of functions, which uses this interface.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.