| san {ergm} | R Documentation |
This function attempts to find a network or networks
whose statistics match those passed
in via the target.stats vector.
## S3 method for class 'formula'
san(object,
response=NULL,
reference=~Bernoulli,
constraints=~.,
target.stats=NULL,
nsim=1,
basis=NULL,
sequential=TRUE,
control=control.san(),
verbose=FALSE,
...)
## S3 method for class 'ergm'
san(object,
formula=object$formula,
constraints=object$constraints,
target.stats=object$target.stats,
nsim=1,
basis=NULL,
sequential=TRUE,
control=object$control$SAN.control,
verbose=FALSE,
...)
object |
Either
a |
response |
EXPERIMENTAL. Name of the edge attribute whose value is to be
modeled. Defaults to |
reference |
EXPERIMENTAL. One-sided formula whose RHS
gives the reference measure to
be used. (Defaults to |
formula |
(By default, the |
constraints |
A one-sided formula specifying one or more constraints
on the support of the distribution of the networks being
simulated. See the documentation for a similar argument for
|
target.stats |
A vector of the same length as the number of terms
implied by the formula, which is either |
nsim |
Number of desired networks. |
basis |
If not NULL, a |
sequential |
Logical: If TRUE, the returned draws always use the prior draw as the starting network; if FALSE, they always use the original network. |
control |
A list of control parameters for algorithm
tuning; see |
verbose |
Logical: If TRUE, print out more detailed information as the simulation runs. |
... |
Further arguments passed to other functions. |
A network or list of networks that hopefully have network statistics close
to the target.stats vector.