Learn R Programming

cograph (version 2.7.2)

print.cograph_degree_fit: Print method for cograph_degree_fit

Description

Displays the comparison table of fitted distributions sorted by AIC.

Usage

# S3 method for cograph_degree_fit
print(x, digits = 4, ...)

Value

Invisible x.

Arguments

x

A cograph_degree_fit object from fit_degree_distribution.

digits

Number of decimal places. Default 4.

...

Additional arguments passed to print.data.frame.

Examples

Run this code
adj <- matrix(c(0, 1, 1, 0, 0,
                1, 0, 1, 1, 0,
                1, 1, 0, 1, 1,
                0, 1, 1, 0, 1,
                0, 0, 1, 1, 0), 5, 5, byrow = TRUE)
fit <- cograph::fit_degree_distribution(adj,
  distributions = c("exponential", "poisson"))
print(fit)

Run the code above in your browser using DataLab