R: Plot Goodness-of-Fit Diagnostics on a Exponential Family...

plot.gofobject {ergm} | R Documentation

## Plot Goodness-of-Fit Diagnostics on a Exponential Family Random Graph Model

### Description

`plot.gofobject` plots diagnostics such as the degree distribution, geodesic distances, shared partner distributions, and reachability for the goodness-of-fit of exponential family random graph models. See `ergm` for more information on these models.

### Usage

    ## S3 method for class 'gofobject'
    plot(x, ...,
             cex.axis=0.7, plotlogodds=FALSE,
             main = "Goodness-of-fit diagnostics",
             normalize.reachability=FALSE,
             verbose=FALSE)

### Arguments

`x` | an object of class `gofobject`, typically produced by the `gof.ergm` or `gof.formula` functions. See the documentation for these.
`cex.axis` | Character expansion of the axis labels relative to that for the plot.
`plotlogodds` | Plot the odds of a dyad having given characteristics (e.g., reachability, minimum geodesic distance, shared partners). This is an alternative to the probability of a dyad having the same property.
`main` | Title for the goodness-of-fit plots.
`normalize.reachability` | Should the reachability proportion be normalized to make it more comparable with the other geodesic distance proportions.
`verbose` | Provide verbose information on the progress of the plotting.
`...` | Additional arguments, to be passed to the plot function.

### Details

`gof.ergm` produces a sample of networks randomly drawn from the specified model. This function produces a plot of the summary measures.

### Value

none

### See Also

gof.ergm, gof.formula, ergm, network, simulate.ergm

### Examples

    ## Not run:
    #
    data(florentine)
    #
    # test the gof.ergm function
    #
    gest <- ergm(flomarriage ~ edges + kstar(2))
    gest
    summary(gest)

    #
    # Plot the probabilities first
    #
    gofflo <- gof(gest)
    gofflo
    plot(gofflo)
    #
    # And now the odds
    #
    plot(gofflo, plotlogodds=TRUE)
    #
    # Use the formula version
    #
    gof(flomarriage ~ edges + kstar(2), coef=c(-1.6339, 0.0049))

    ## End(Not run)

[Package ergm version 3.8.0 Index]