K2C: Create a centered Kernel matrix

Description Usage Arguments Value References

View source: R/D2GK.R

Description

Given a symmetric kernel matrix K, we calculate HKH, where H=I-11'/n is a centering/projection matrix. Mathematically it is equivalent to subtract the row and column means, which is computationally more efficient.

Usage

1
K2C(K)

Arguments

K

kernel matrix

Value

row and column centered kernel matrix

References

Guo,B. and Wu,B. (2017) On the fast small-sample kernel independence test for microbiome community-level association analysis. Biometrics, doi:10.1111/biom.12823.


baolinwu/MiRV documentation built on May 28, 2019, 6:37 p.m.