Usage
"gof"(object,...)
"gof"(object, ..., coef=NULL, GOF=NULL, constraints=~., control=control.gof.formula(),
unconditional=TRUE, verbose=FALSE)
"gof"(object, ..., coef=NULL, GOF=NULL, constraints=NULL, control=control.gof.ergm(), verbose=FALSE)
Arguments
object
an R object. Either a formula or an ergm
object.
See documentation for ergm
.
...
Additional arguments, to be passed to lower-level functions
in the future.
coef
When given either
a formula or an object of class ergm, coef
are the parameters
from which the sample is drawn. By default set to a vector of 0.
GOF
formula; an R formula object, of the form
~
specifying the
statistics to use to diagnosis the goodness-of-fit of the model.
They do not need to be in the model formula specified in
formula
, and typically are not.
Currently supported terms are the degree distribution (degree
for undirected graphs, or idegree and/or odegree for
directed graphs), geodesic distances (distance), shared partner
distributions (espartners and dspartners), the triad
census (triadcensus), and the terms of the original model
(model). The default formula for undirected networks is
~ degree + espartners + distance
, and the default formula for
directed networks is ~ idegree + odegree + espartners + distance
.
constraints
A one-sided formula specifying one or more constraints
on the support of the distribution of the networks being
modeled. See the help for similarly-named argument in
ergm
for more information. For
gof.formula
, defaults to unconstrained. For gof.ergm
,
defaults to the constraints with which object
was fitted.
unconditional
logical; if TRUE
, the simulation is unconditional on the observed dyads.
if not TRUE
, the simulation is conditional on the observed dyads. This is primarily
used internally when the network has missing data and a conditional GoF is produced.
verbose
Provide verbose information on the progress of the
simulation.