momentfun: Generate the first four exact permutation moments of quadratic form statistics.
Description
For symmetric C and D (with zero diagonals), we implement the Siemiatycki moment computation.
Usage
momentfun(Px, Py, n, mycoef)
Arguments
Px
list of linear combinations
Py
list of linear combinations
n
sample size n has to be at least 8.
mycoef
global coefficients we need for the function.
Value
- first
- first permutation moment of quadratic form
- second
- second permutation moment
- third
- third permutation moment
- fourth
- fourth permutation moment
References
YH Zhou, G Mayhew, Z Sun, X Xu, F Zou, FA Wright, 2013 Space-time clustering and the permutation moments of quadratic forms, Stat 2(1), 292-302