tests | R Documentation |
These functions conduct conditional uniform graph (CUG) or permutation (QAP) tests of any graph-level statistic.
test_random(
.data,
FUN,
...,
times = 1000,
strategy = "sequential",
verbose = FALSE
)
test_permutation(
.data,
FUN,
...,
times = 1000,
strategy = "sequential",
verbose = FALSE
)
.data |
An object of a
|
FUN |
A graph-level statistic function to test. |
... |
Additional arguments to be passed on to FUN, e.g. the name of the attribute. |
times |
Integer indicating number of simulations used for quantile estimation.
(Relevant to the null hypothesis test only -
the analysis itself is unaffected by this parameter.)
Note that, as for all Monte Carlo procedures, convergence is slower for more
extreme quantiles.
By default, |
strategy |
If |
verbose |
Whether the function should report on its progress.
By default FALSE.
See |
test_random()
: Returns test results for some measure on an object
against a distribution of measures on random networks of the same dimensions
test_permutation()
: Returns test results for some measure on an object
against a distribution of measures on permutations of the original network
Other models:
play
,
regression
marvel_friends <- to_unsigned(ison_marvel_relationships)
marvel_friends <- to_giant(marvel_friends) %>%
to_subgraph(PowerOrigin == "Human")
(cugtest <- test_random(marvel_friends, network_heterophily, attribute = "Attractive",
times = 200))
plot(cugtest)
(qaptest <- test_permutation(marvel_friends,
network_heterophily, attribute = "Attractive",
times = 200))
plot(qaptest)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.