networkSampling_fit: Virtual class of the fits of a sampling design

networkSampling_fitR Documentation

Virtual class of the fits of a sampling design

Description

The mother of networkSamplingDyads_fit and networkSamplingNodes_fit, with the defaults of a sampling that does not depend on the blocks: no parameter indexed by the blocks, nothing to update along the VEM, no term in the update of the blocks. Each design defines vExpec_at(Z), the expected log-likelihood of the sampling at memberships Z (which it ignores if it does not depend on the blocks); vExpec is its value at the memberships of the last update of the parameters.

Super class

networkSampling -> networkSampling_fit

Active bindings

penalty

double, value of the penalty term in ICL: the parameters of the sampling count all the sampling units (dyads or nodes), the sampling matrix being fully observed

vExpec

variational expectation of the log-likelihood of the sampling, at the memberships of the last update of the parameters

Methods

Public methods

Inherited methods

networkSampling_fit$show()

show method

Usage
networkSampling_fit$show()

networkSampling_fit$update_parameters()

update the parameters along the VEM: nothing to do by default, the parameters of a sampling not depending on the blocks being estimated once

Usage
networkSampling_fit$update_parameters(...)
Arguments
...

use for compatibility


networkSampling_fit$reorder()

permute the parameters indexed by the blocks, after the blocks of the SBM were permuted. By default, nothing to do (no parameter indexed by the blocks)

Usage
networkSampling_fit$reorder(o)
Arguments
o

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


networkSampling_fit$vExpec_at()

the variational expectation of the log-likelihood of the sampling at given memberships (used by the ICL, at the MAP memberships), defined by each design

Usage
networkSampling_fit$vExpec_at(Z)
Arguments
Z

an n x Q matrix of memberships


networkSampling_fit$log_lambda()

the term of the sampling in the update of the blocks (log lambda): for each node i and block q, the expected log-likelihood of the sampling terms involving i if it were in block q, the other nodes following the memberships Z. 0 when the sampling does not depend on the blocks

Usage
networkSampling_fit$log_lambda(Z)
Arguments
Z

an n x Q matrix of memberships


networkSampling_fit$clone()

The objects of this class are cloneable with this method.

Usage
networkSampling_fit$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


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