determine_obsProb: Determine the matrix of probabilities of observing the edges...

Description Usage Arguments Value

View source: R/expDesign_sampling.R

Description

Determine the matrix of probabilities of observing the edges Internal.

Usage

1
2
3
4
5
determine_obsProb(
  scan.list,
  sampling = c("constant", "matrix", "random", "function"),
  all.sampled
)

Arguments

scan.list

a scanList object

sampling

for method = "group, users should input either:

  • a numeric scalar ("constant"): the constant probability of observing an edge for all edges

  • a numeric matrix ("matrix"): the probabilities of observing an edge for each edges

  • a character scalar: for common sampling regimes:

    • "random": random edge observation probabilities

  • a user-defined function ("function"): a function of the adjacency matrix Adj (can be named anything) that returns a matrix of the probabilities of observing an edge for each edges

all.sampled

logical scalar, should all nodes be sampled at least once? (TO CHECK: does it work with group-scan sampling?)

Value

an obsProb object, being:


R-KenK/SimuNet documentation built on Oct. 22, 2021, 1:27 a.m.