R: A lack-of-fit test for ERGMs

rank_test.ergm {ergm} | R Documentation

## A lack-of-fit test for ERGMs

### Description

A simple test reporting the sample quantile of the observed network's probability in the distribution under the MLE. This is a conservative p-value for the null hypothesis of the observed network being a draw from the distribution of interest.

### Usage

    rank_test.ergm(x, plot = FALSE)

### Arguments

`x` | an `ergm()` object.
`plot` | if `TRUE`, plot the empirical distribution.

### Value

The sample quantile of the observed network's probability among the predicted.

[Package ergm version 4.2.2 Index]