computeTestChiSquaredGeometric {rotRPackage} | R Documentation |
This ROT function, called from a Test C++ object, is given a sample, the geometric distribution parameter, and optionnaly a test level. It then returns the result of a X² test against the null hypothesis that the sample has un underlying Geometric distribution and returns a list containing the result, statistic and test p-value.
computeTestChiSquaredGeometric(numericalSample, p, testLevel = 0.95, estimatedParameters)
numericalSample |
the sample to be tested (numeric vector) |
p |
The p parameter (scalar) |
testLevel |
the test level. (scalar in [0:1]) |
estimatedParameters |
the test level. (scalar in [0:1]) |
A list is returned, containing :
testResult |
The result. 1 means H0 is not rejected. (scalar) |
threshold |
The threshold applied to the p-value when deciding the outcome of the test. |
pValue |
The test p-value. (scalar) |
Pierre-Matthieu Pair, Softia for EDF.
# Standard Normal distribution example. print(computeTestChiSquaredGeometric(rgeom(1000, 0.5), 0.5)) print(computeTestChiSquaredGeometric(rgeom(1000, 0.5), 0.25))