LP.comean {LPKsample}R Documentation

Function to find LP-comeans

Description

The function computes the LP comeans between x and y.

Usage

LP.comean(x, y, perm=0)

Arguments

x

vector, observations of an univariate random variable

y

vector, observations of another univariate random variable

perm

Number of permutations for approximating p-value, set to 0 to use asymptotic p-value.

Value

A list containing:

LPINFOR

The test statistics based on LP comeans

p.val

Test p-value

LP.matrix

LP comean matrix

Author(s)

Mukhopadhyay, S. and Wang, K.

References

Mukhopadhyay, S. and Wang, K. (2020), "A Nonparametric Approach to High-dimensional K-sample Comparison Problem", arXiv:1810.01724.

Parzen, E. and Mukhopadhyay, S. (2012) "Modeling, Dependence, Classification, United Statistical Science, Many Cultures".

Examples

#example: LP-comean for two simple vectors:
 y<-c(1,2,3,4,5)
 z<-c(0,-1,-1,3,4)
 comeanYZ=LP.comean(y,z)
#sum square statistics of LP comean:
 comeanYZ$LPINFOR
#p-value:
 comeanYZ$p.val
#comean matrix:
 comeanYZ$LP.matrix

[Package LPKsample version 2.1 Index]