poissonTest: Test of Poisson distribution.

poissonTestR Documentation

Test of Poisson distribution.

Description

A simple test of a hypothesis that a given sample 'x' comes from a Poisson distribution with unknown parameter. The test is described in Zvara (2008), chapter 10.5.

Usage

poissonTest(x, alpha = 0.05, 
    na.rm = FALSE)

Arguments

x

a vector of samples

alpha

significance level

na.rm

shall NA's be removed first?

Value

a list of 'q' (the test statistics), 'q1, q2' (the critical values), and 'p' (the p-value of the test)

Author(s)

Tomas Sieger

References

Karel Zv\'ara. _Regrese._ Matfyzpress Praha 2008. Chapter 10.5

Examples

poissonTest(rpois(20,3))
poissonTest(abs(rnorm(20)))

tsieger/tsiMisc documentation built on Oct. 10, 2023, 10:24 p.m.