Description Usage Arguments Value See Also
View source: R/expDesign_sampling.R
Performs a group-scan sampling over a scanList
object
Internal.
1 2 3 4 5 | group_sample(
scan.list,
sampling = c("constant", "matrix", "random", "function"),
all.sampled = TRUE
)
|
scan.list |
a |
sampling |
for
|
all.sampled |
logical scalar, should all nodes be sampled at least once? (TO CHECK: does it work with group-scan sampling?) |
an empirical scanList
object in which, compared to the theoretical.scanList
(added
to attrs
), unobserved edges are replaced by NA
s (regardless of them being 0 or 1).
Returned scanList
has new attributes added to attrs:
obs.P
: matrix of probabilities of observing an edge (whether it is 0 or 1)
theoretical.scanList
: the original theoretical scanList
from which some edges have not been
observed
design_sampling()
, determine_obsProb()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.