moment.determine {OLCPM} | R Documentation |
determine the moment (largest) of the data samples
Description
This function reports the largest moment that exists for a collection of data samples.
Usage
moment.determine(x, k.max = 8, alpha = 0.05, R = 400)
Arguments
x |
a numeric vector of data samples. |
k.max |
a number indicating the upper bound, i.e., at most k.max-th moment exists. |
alpha |
a number in |
R |
the number of standard Gaussian variables generated in the
randomized test; see also |
Details
The procedure will sequentially test the existence of the moment, using the function
in the same
package. As soon as the procedure finds that the
moment does not
exist, it stops and reports at most
moment.
Value
an integer, indicating the largest moment that exists for the data samples.
Author(s)
Yong He, Xinbing Kong, Lorenzo Trapani, Long Yu
Examples
x=rt(10000,5)
moment.determine(x,10)
x=rt(10000,4)
moment.determine(x,10)
[Package OLCPM version 0.1.2 Index]