coef.SBM: Extract model coefficients

View source: R/R6Class-SBM.R

coef.SBMR Documentation

Extract model coefficients

Description

Extracts model coefficients from objects with class SBM and children (SimpleSBM_fit, BipartiteSBM_fit)

Usage

## S3 method for class 'SBM'
coef(object, type = c("connectivity", "block", "covariates"), ...)

Arguments

object

an R6 object inheriting from class SBM_fit (like SimpleSBM_fit or BipartiteSBM_fit)

type

type of parameter that should be extracted. Either 'block' for

\pi

, 'connectivity' for

\theta

, or "covariates" for

\beta

. Default is 'connectivity'.

...

additional parameters for S3 compatibility. Not used

Value

vector or list of parameters.


sbm documentation built on Sept. 17, 2024, 1:06 a.m.