run_perm_test: Runs the permutation test given the value of the U-statistic...

Description Usage Arguments Value

View source: R/nonpar.R

Description

Runs the permutation test given the value of the U-statistic the number of repetitions, and the estimated latent positions Code written in Fall of 2018, so may be buggy

Usage

1
run_perm_test(U, nsims, X, Y, dist.mat = NULL, alpha = 0.05)

Arguments

U

value of null U statistic

nsims

number of simulations

X

estimates for latent positions 1

Y

estimates for latent positions 2

dist.mat

Optional, a distance matrix precalculated already so as not to recalculate. If null, the function is recursively run to calculate it

alpha

the rejection level

Value

either an estimated p-value under the null or the vector of permuted test statistics


jagterberg/nonparGraphTesting documentation built on Feb. 4, 2022, 1:31 a.m.