| partlyObservedNetwork {missSBM} | R Documentation |
An R6 Class used for internal representation of a partially observed network
Description
An R6 Class used for internal representation of a partially observed network
An R6 Class used for internal representation of a partially observed network
Details
This class is not exported to the user
Active bindings
samplingRateThe percentage of observed dyads
nbNodesThe number of nodes
nbDyadsThe number of dyads
is_directedlogical indicating if the network is directed or not
networkDataThe adjacency matrix of the network
covarArraythe array of covariates
covarMatrixthe matrix of covariates
samplingMatrixmatrix of observed and non-observed edges
samplingMatrixBarmatrix of observed and non-observed edges
observedNodesa vector of observed and non-observed nodes (observed means at least one non NA value)
Methods
Public methods
Method new()
constructor
Usage
partlyObservedNetwork$new( adjacencyMatrix, covariates = list(), similarity = l1_similarity )
Arguments
adjacencyMatrixThe adjacency matrix of the network
covariatesA list with M entries (the M covariates), each of whom being either a size-N vector or N x N matrix.
similarityAn R x R -> R function to compute similarities between node covariates. Default is
l1_similarity, that is, -abs(x-y).
Method clustering()
method to cluster network data with missing value
Usage
partlyObservedNetwork$clustering( vBlocks, imputation = ifelse(is.null(private$phi), "median", "average") )
Arguments
vBlocksThe vector of number of blocks considered in the collection.
imputationcharacter indicating the type of imputation among "median", "average"
Method imputation()
basic imputation from existing clustering
Usage
partlyObservedNetwork$imputation(type = c("median", "average", "zero"))Arguments
typea character, the type of imputation. Either "median" or "average"
Method clone()
The objects of this class are cloneable with this method.
Usage
partlyObservedNetwork$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.