testdelta2: Pgf Test for Poisson Distribution Delta_2

Description Usage Arguments Details Value Author(s) References Examples

View source: R/TESTDELTA2.R

Description

Performs the empirical distribution function goodness-of-fit test of Poisson distribution with unknown parameter

Usage

1
testdelta2(x, n.boot)

Arguments

x

vector of nonnegative integers, the sample data

n.boot

number of bootstrap replicates

Details

The test of Poissonity Δ_{2} was proposed by Puig and Weibb (2020). The test is based on some characterizations like the Binomial thinning operator for the probability generating function of a Poisson distribution. The test statistic is based on the L2 norm.

\hat{Δ}_2=\int_{0}^{1} (\hat{g}(t) - [\hat{g}(t)(\frac{t+1}{2})]^2) ^2 dt

\hat{g}(t) denotes the empirical pobability generating function of X.

The test is implemented by parametric boostrap with n.boot replicates

Value

The function testDelta2 returns a list with class htest containing:

Description of test

data

Description of data

test statistic

Value of test statistic

p-value

approximate p-value of the test

mean

sample mean

Author(s)

Manuel Mendez Hurtado mmendezinformatica@gmail.com

References

Puig, P and Weibb, C. H. (2020) Empirical-distribution-function goodness-of-fit tests for discrete models, Computational Statistics and Data Analysis Vol 144, 1-12 https://www.sciencedirect.com/science/article/pii/S0167947319302336

Examples

1
2
x <- rpois(20,2)
testdelta2(x, n.boot = 500)

MMH1997/TestPoissonity documentation built on Dec. 17, 2021, 2:11 a.m.