networkSampler | R Documentation |
Definition of R6 Class 'networkSampling_sampler'
Definition of R6 Class 'networkSampling_sampler'
This class is use to define a sampling model for a network. Inherits from 'networkSampling'. Owns a rSampling method which takes an adjacency matrix as an input and send back an object with class partlyObservedNetwork.
missSBM::networkSampling
-> networkSampler
samplingMatrix
a matrix of logical indicating observed entries
new()
constructor for networkSampling
networkSampler$new(type = NA, parameters = NA, nbNodes = NA, directed = FALSE)
type
character for the type of sampling. must be in ("dyad", "covar-dyad", "node", "covar-node", "block-node", "block-dyad", "double-standard", "degree")
parameters
the vector of parameters associated to the sampling at play
nbNodes
number of nodes in the network
directed
logical, directed network of not
rSamplingMatrix()
a method for drawing a sampling matrix according to the current sampling design
networkSampler$rSamplingMatrix()
clone()
The objects of this class are cloneable with this method.
networkSampler$clone(deep = FALSE)
deep
Whether to make a deep clone.
partlyObservedNetwork
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.