gof.mlergm {mlergm} | R Documentation |
Evaluate the goodness-of-fit of an estimated model.
Description
Performs a Goodness-of-Fit procedure along the lines of
Hunter, Goodreau, and Handcock (2008). Statistics are simulated
from an fitted mlergm
object, which can then be plotted and visualized.
An example is given in the documentation of mlergm
.
Usage
## S3 method for class 'mlergm'
gof(object, ..., options = set_options(), seed = NULL, gof_form = NULL)
Arguments
object |
An object of class |
... |
Additional arguments to be passed if necessary. |
options |
See |
seed |
A seed to be provided to ensure reproducibility of results. |
gof_form |
A formula object of the form |
Value
gof.mlergm
returns an object of class gof_mlergm
which is a list containing:
obs_stats |
The GOF statistic values of the observed network. |
gof_stats |
The GOF statistic values simulated from the the estimated |
References
Hunter, D. R., Goodreau, S. M., and Handcock, M. S. (2008). Goodness of fit of social network models. Journal of the American Statistical Association, 103(481), 248-258.