statistics | R Documentation |
This is a collection of functions that provide statistics for testing equality in distribution between samples of networks.
stat_student_euclidean(d, indices, ...)
stat_welch_euclidean(d, indices, ...)
stat_original_edge_count(d, indices, edge_count_prep, ...)
stat_generalized_edge_count(d, indices, edge_count_prep, ...)
stat_weighted_edge_count(d, indices, edge_count_prep, ...)
d |
Either a matrix of dimension |
indices |
A vector of dimension |
... |
Extra parameters specific to some statistics. |
edge_count_prep |
A list of preprocessed data information used by edge
count statistics and produced by |
In details, there are three main categories of statistics:
Euclidean t-Statistics: both Student stat_student_euclidean
version for
equal variances and Welch stat_welch_euclidean
version for unequal
variances,
Statistics based on similarity graphs: 3 types of edge count statistics.
A scalar giving the value of the desired test statistic.
n1 <- 30L
n2 <- 10L
gnp_params <- list(p = 1/3)
k_regular_params <- list(k = 8L)
x <- nvd(model = "gnp", n = n1, model_params = gnp_params)
y <- nvd(model = "k_regular", n = n2, model_params = k_regular_params)
r <- repr_nvd(x, y, representation = "laplacian")
stat_student_euclidean(r, 1:n1)
stat_welch_euclidean(r, 1:n1)
d <- dist_nvd(x, y, representation = "laplacian", distance = "frobenius")
ecp <- edge_count_global_variables(d, n1, k = 5L)
stat_original_edge_count(d, 1:n1, edge_count_prep = ecp)
stat_generalized_edge_count(d, 1:n1, edge_count_prep = ecp)
stat_weighted_edge_count(d, 1:n1, edge_count_prep = ecp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.