summary.network_histogram: Summarize network histogram fits

View source: R/summary.R

summary.network_histogramR Documentation

Summarize network histogram fits

Description

Detailed summary of a fitted network histogram. The print methods of the fitted objects give a short identification only; the model fit statistics are reported here.

Usage

## S3 method for class 'network_histogram'
summary(object, ...)

## S3 method for class 'multinethist'
summary(object, ...)

## S3 method for class 'hnethist'
summary(object, ...)

## S3 method for class 'summary.network_histogram'
print(x, digits = getOption("digits"), ...)

Arguments

object

a network_histogram object, that is, a fit returned by nethist, multinethist, or hnethist.

...

additional arguments. Currently unused.

x

a summary.network_histogram object.

digits

number of significant digits used when printing numeric quantities.

Details

The summary method is defined on the common base class, so it applies to nethist, multinethist, and hnethist objects alike. The subclass methods add the fields specific to them and are otherwise deferred to the base method via NextMethod(); see network_histogram-class.

The estimated probabilities themselves are not printed, since the matrix grows with the number of blocks. Use object$thetahat or fitted() to obtain them.

Value

summary() returns an object inheriting from summary.network_histogram: a list holding the fitted object together with the number of nodes, the number of blocks, the log-likelihood, the degrees of freedom, AIC, and BIC. Multilayer fits add n_layers, and hnethist fits add the selected number of shapes s and the number of candidate models n_candidate. The print method returns its input invisibly.

See Also

network_histogram-class, print.nethist, logLik.network_histogram

Examples


set.seed(42)
data(polblog)
fit <- suppressMessages(nethist(polblog))
fit
summary(fit)


nethist documentation built on Oct. 25, 2026, 5:07 p.m.