| power2 | R Documentation | 
This function provides a Monte-Carlo estimate of the power of the permutation tests proposed in this package.
power2(
  sample_size1,
  model1,
  params1,
  sample_size2,
  model2,
  params2,
  representation = "adjacency",
  distance = "frobenius",
  stats = c("flipr:t_ip", "flipr:f_ip"),
  B = 1000L,
  alpha = 0.05,
  test = "exact",
  k = 5L,
  R = 1000L
)
| sample_size1 | An integer specifying the size of the first sample. | 
| model1 | A string specifying the model to be used for sampling networks
in the first sample. All  | 
| params1 | A list specifying the parameters to be passed to the model function that will generate the first sample. | 
| sample_size2 | An integer specifying the size of the second sample. | 
| model2 | A string specifying the model to be used for sampling networks
in the second sample. All  | 
| params2 | A list specifying the parameters to be passed to the model | 
| representation | A string specifying the desired type of representation,
among:  | 
| distance | A string specifying the chosen distance for calculating the
test statistic, among:  | 
| stats | A character vector specifying the chosen test statistic(s),
among:  | 
| B | The number of permutation or the tolerance. If this number is lower
than  | 
| alpha | Significance level for hypothesis testing. Defaults to  | 
| test | A character string specifying the formula to be used to compute
the permutation p-value. Choices are  | 
| k | An integer specifying the density of the minimum spanning tree used
for the edge count statistics. Defaults to  | 
| R | Number of Monte-Carlo trials used to estimate the power. Defaults to
 | 
Currently, six scenarios of pairs of populations are implemented. Scenario 0 allows to make sure that all our permutation tests are exact.
A numeric value estimating the power of the test.
gnp_params <- list(n = 24L, p = 1/3)
degree_params <- list(out_degree = rep(2, 24L), method = "configuration")
power2(
  sample_size1 = 10L, model1 = "gnp", params1 = gnp_params,
  sample_size2 = 10L, model2 = "degree", params2 = degree_params,
  R = 10L,
  B = 100L
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.