kernel.stat: Function to generate the U-statistic given the latent...

Description Usage Arguments Value

View source: R/nonpar.R

Description

Function to generate the U-statistic given the latent positions X and Y and an optional choice of sigma. Original code by Youngser Park.

Usage

1
2
kernel.stat(X, Y, sigma = 0.5, dist = NULL, i1 = c(1:nrow(X)),
  i2 = c((nrow(X) + 1):(nrow(X) + nrow(Y))))

Arguments

X

n x d datset

Y

m x d dataset

sigma

for the kernel

dist

optional, the precalculated kernel matrix

i1

sets of indices of X to run the permutation test

i2

sets of indices of X to run the permutation test

Value

the kernel statistic evaluated at the specified indices


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