rank_test.ergm: A lack-of-fit test for ERGMs

View source: R/rank_test.ergm.R

rank_test.ergmR 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.


ergm documentation built on May 31, 2023, 8:04 p.m.