An R6 Class used for internal representation of a partially observed network
An R6 Class used for internal representation of a partially observed network
samplingRate
The percentage of observed dyads
nbNodes
The number of nodes
nbDyads
The number of dyads
is_directed
logical indicating if the network is directed or not
netMatrix
The adjacency matrix of the network
covarArray
the array of covariates
covarMatrix
the matrix of covariates
dyads
a list of potential dyads in the network
missingDyads
array indices of missing dyads
observedDyads
array indices of observed dyads
samplingMatrix
matrix of observed and non-observed edges
observedNodes
a vector of observed and non-observed nodes
NAs
boolean for NA entries in the adjacencyMatrix
new()
constructor
partlyObservedNetwork$new( adjacencyMatrix, covariates = NULL, similarity = missSBM:::l1_similarity )
adjacencyMatrix
The adjacency matrix of the network
covariates
A list with M entries (the M covariates), each of whom being either a size-N vector or N x N matrix.
similarity
An R x R -> R function to compute similarities between node covariates. Default is l1_similarity
, that is, -abs(x-y).
clustering()
method to cluster network data with missing value
partlyObservedNetwork$clustering( nbBlocks, method = c("hierarchical", "spectral", "kmeans") )
nbBlocks
integer, the chosen number of blocks
method
character with a clustering method among "hierarchical", "spectral", "kmeans".
imputation()
basic imputation from existing clustering
partlyObservedNetwork$imputation(clustering)
clustering
a vector with size ncol(adjacencyMatrix)
, providing a user-defined clustering with nbBlocks
levels.
an adjacency matrix with imputed values
clone()
The objects of this class are cloneable with this method.
partlyObservedNetwork$clone(deep = FALSE)
deep
Whether to make a deep clone.
This class is not exported to the user