- formula
An formula object, of the form g ~ <term 1> + <term 2>
...
, where g
is a network object or a matrix that can be coerced to
a network object, and <term 1>
, <term 2>
, etc., are each terms
for the model. See terms.ergmm
for the terms that can be
fitted. To create a network object in , use the network
function,
then add nodal attributes to it using set.vertex.attribute
if
necessary.
Note that, as in lm
, the model will include an
intercept
term. This behavior can be overridden by including a
-1
or +0
term in the formula, and a
1(mean=...,var=...)
term can be used to set a
prior different from default.
- response
An optional edge attribute that serves as the response
variable. By default, presence (1) or absence (0) of an edge in g
is
used.
- family
A character vector specifying the conditional distribution of
each edge value. See families.ergmm for the currently implemented
families.
- fam.par
For those families that require additional parameters, a
list.
- control
The MCMC parameters that do not affect the posterior
distribution such as the sample size, the proposal variances, and tuning
parameters, in the form of a named list. See control.ergmm
for
more information and defaults.
- user.start
An optional initial configuration parameters for MCMC in
the form of a list. By default, posterior mode conditioned on cluster
assignments is used. It is permitted to only supply some of the parameters
of a configuration. If this is done, the remaining paramters are fitted
conditional on those supplied.
- prior
The prior parameters for the model being fitted in the form of
a named list. See terms.ergmm for the names to use. If given, will
override those given in the formula terms, making it useful as a convenient
way to store and reproduce a prior distribution. The list or prior
parameters can also be extracted from an ERGMM fit
object. See ergmm.prior
for more information.
- tofit
A character vector listing some subset of "pmode", "mcmc",
"mkl", "mkl.mbc", "mle","procrustes", and "klswitch", defaulting to all of
the above, instructing ergmm
what should be returned as a part
of the ERGMM fit object. Omiting can be used to skip
particular steps in the fitting process. If the requested procedure or
output depends on some other procedure or output not explictly listed, the
dependency will be resolved automatically.
- Z.ref
If given, used as a reference for Procrustes analysis.
- Z.K.ref
If given, used as a reference for label-switching.
- seed
If supplied, random number seed.
- verbose
If this is TRUE
(or 1
), causes information to
be printed out about the progress of the fitting, particularly initial value
generation. Higher values lead to greater verbosity.