1
\name{computeTestChiSquaredGeometric}
2
\alias{computeTestChiSquaredGeometric}
3
\title{Compute the chi squared test for Geometric Distribution.}
5
This ROT function, called from a Test C++ object, is given a sample,
6
the geometric distribution parameter, and optionnaly a test level.
7
It then returns the result of a X� test against the null hypothesis
8
that the sample has un underlying Geometric distribution and returns a
9
list containing the result, statistic and test p-value.
12
computeTestChiSquaredGeometric(numericalSample, p, testLevel = 0.95, estimatedParameters)
15
\item{numericalSample}{the sample to be tested (numeric vector)}
16
\item{p}{The p parameter (scalar)}
17
\item{testLevel}{the test level. (scalar in [0:1])}
18
\item{estimatedParameters}{the test level. (scalar in [0:1])}
21
A list is returned, containing :
22
\item{testResult}{The result. 1 means H0 is not rejected. (scalar)}
23
\item{threshold}{The threshold applied to the p-value when deciding the outcome of the test.}
24
\item{pValue}{The test p-value. (scalar)}
26
\author{Pierre-Matthieu Pair, Softia for EDF.}
28
# Standard Normal distribution example.
30
print(computeTestChiSquaredGeometric(rgeom(1000, 0.5), 0.5))
31
print(computeTestChiSquaredGeometric(rgeom(1000, 0.5), 0.25))
33
\keyword{distribution}