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 mlergm, likely produced by function mlergm.

...

Additional arguments to be passed if necessary.

options

See set_options for details.

seed

A seed to be provided to ensure reproducibility of results.

gof_form

A formula object of the form ~ term1 + term2 + ... for statistics to compute for the GOF procedure.

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 mlergm objeect provided.

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.

See Also

plot.gof_mlergm


[Package mlergm version 0.8 Index]