loc0.test: Log-likelihood ratio test for zero location parameter

View source: R/loc0.test.R

loc0.testR Documentation

Log-likelihood ratio test for zero location parameter

Description

Log-likelihood ratio test for zero location parameter.

Usage

loc0.test(y, tol = 1e-7)

Arguments

y

A vector with integer values.

tol

The tolerance value to terminate the maximization algorithm.

Details

We perform a log-likelihood ratio test to test whether the location parameter can be assumed zero or not.

Value

A vector with the test statistic and its associated p-value.

Author(s)

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

References

Papadatos N. (2022). The characteristic function of the discrete Cauchy distribution In Memory of T. Cacoullos. Journal of Statistical Theory and Practice, 16(3): 47.

See Also

cc.mle, dcc

Examples

y <- round( rcauchy(100, 3, 10) )
loc0.test(y)

y <- round( rcauchy(100, 0, 10) )
loc0.test(y)

CCd documentation built on April 4, 2025, 2:21 a.m.