blockDyadSampling_fit: Class for fitting a block-dyad sampling

blockDyadSampling_fitR Documentation

Class for fitting a block-dyad sampling

Description

Class for fitting a block-dyad sampling

Super classes

networkSampling -> networkSampling_fit -> networkSamplingDyads_fit -> blockDyadSampling_fit

Active bindings

df

the number of parameters: Q^2, or Q(Q+1)/2 in an undirected network (\psi is symmetric)

Methods

Public methods

Inherited methods

blockDyadSampling_fit$new()

constructor

Usage
blockDyadSampling_fit$new(partlyObservedNetwork, blockInit)
Arguments
partlyObservedNetwork

a object with class partlyObservedNetwork representing the observed data with possibly missing entries

blockInit

n x Q matrix of initial block indicators


blockDyadSampling_fit$update_parameters()

update the parameters: the observation rate of the dyads between each pair of blocks, \hat\psi_{q\ell} = (Z^\top R Z)_{q\ell} / (Z^\top (R + \bar R) Z)_{q\ell}, symmetrized in an undirected network (where R and \bar R only hold the upper triangle)

Usage
blockDyadSampling_fit$update_parameters(Z, ...)
Arguments
Z

probabilities of block memberships

...

use for compatibility


blockDyadSampling_fit$reorder()

permute the parameters indexed by the blocks, after the blocks of the SBM were permuted

Usage
blockDyadSampling_fit$reorder(o)
Arguments
o

the permutation applied to the blocks (new block k is former block o[k])


blockDyadSampling_fit$vExpec_at()

the variational expectation of the log-likelihood of the sampling at given memberships: the expectation of the log (not the log of the expectation), consistent with the update of psi and with log_lambda, computed through Z^\top R Z and Z^\top \bar R Z, without any n x n matrix

Usage
blockDyadSampling_fit$vExpec_at(Z)
Arguments
Z

an n x Q matrix of memberships


blockDyadSampling_fit$log_lambda()

the term of the sampling in the update of the blocks: for each node i and block q, \sum_j \sum_l Z_{jl} \log \psi_{ql} over its observed dyads (i, j), plus the same with \log(1 - \psi_{ql}) over its missing dyads

Usage
blockDyadSampling_fit$log_lambda(Z)
Arguments
Z

an n x Q matrix of memberships


blockDyadSampling_fit$clone()

The objects of this class are cloneable with this method.

Usage
blockDyadSampling_fit$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


missSBM documentation built on Dec. 3, 2026, 1:07 a.m.