Learn R Programming

CCd (version 1.1)

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

Description

Log-likelihood ratio test for zero location parameter.

Usage

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

Value

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

Arguments

y

A vector with integer values.

tol

The tolerance value to terminate the maximization algorithm.

Author

Michail Tsagris.

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

Details

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

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

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

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

Run the code above in your browser using DataLab