Definition of R6 Class 'networkSampling'
Definition of R6 Class 'networkSampling'
Definition of R6 Class 'networkSampling'
this virtual class is the mother of all subtypes of networkSampling (either sampler or fit) It is used to define a sampling model for a network. It has a rSampling method which takes an adjacency matrix as an input and send back an object with class partlyObservedNetwork.
type
: a character for the type of sampling
parameters
: the vector of parameters associated with the sampling at play
df
: the number of entries in the vector of parameters
new()
constructor for networkSampling
networkSampling$new(type = NA, parameters = NA)
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
show()
show method
networkSampling$show(
type = paste0(private$name, "-model for network sampling\n")
)
type
: character used to specify the type of sampling
print()
User friendly print method
networkSampling$print()
clone()
The objects of this class are cloneable with this method.
networkSampling$clone(deep = FALSE)
deep
: Whether to make a deep clone.