Description Usage Arguments Value See Also Examples
View source: R/expDesign_building.blocks.R
Written as a S3 method to be applied to scanList
or sLlist
(list of scanList
) objects.
1 | scale_scans(scan.list, ...)
|
scan.list |
a |
... |
additional arguments to be passed. At the moment At the moment |
a scaled
object, or list of such, consisting mainly on a weighted adjacency matrix
where each edge weight is equal to the sum of all binary edges divided by the number of times
they have been sampled (determined via count_nonNA()
). Inherits from
weightedAdj
and the previous scanList
class (theoretical or empirical, inheriting from
scanList
), and keeps track of the scan.list
's list of attributes attrs
simunet()
, design_exp()
, perform_exp()
, sum_scans()
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | set.seed(42)
n <- 5L
samp.effort <- 241L
# Adjacency matrix import
## random directed adjacency matrix
Adj <- sample(1:samp.effort,n * n) |>
matrix(nrow = 5,dimnames = list(letters[1:n],letters[1:n]))
diag(Adj) <- 0L
Adj
# social network simulations
## theoretical scans
sL <- simunet(Adj = Adj,samp.effort = samp.effort,mode = "directed",n.scans = 120L)
sL
# scale_scans() can scale `weightedAdj` objects...
sL |> sum_scans() |> scale_scans()
# ... or `scanList` object directly
## group-scan sampling
sL |> perform_exp(design_sampling("group",.6)) |> scale_scans()
## comparing group-scan and focal sampling
sL |> perform_exp(design_sampling("group",.6),
design_sampling("focal","even")
) |> scale_scans()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.