Learn R Programming

ergm (version 4.7.1)

rank_test.ergm: 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)

Value

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

Arguments

x

an ergm() object.

plot

if TRUE, plot the empirical distribution.