cucconi.teststat: Cucconi test statistic

View source: R/cucconi.teststat.R

cucconi.teststatR Documentation

Cucconi test statistic

Description

Calculates the test statistic for the Cucconi two-sample location-scale test.

Usage

cucconi.teststat(x, y, m = length(x), n = length(y))

Arguments

x

Vector of values.

y

Vector of values.

m

Length of x.

n

Length of y.

Details

This is a utility function used by cucconi.test, cucconi.dist.perm and cucconi.dist.boot, but can also be called directly if required.

Value

Returns the test statistic for Cucconi's test (scalar).

Author(s)

Theo Pepler

References

Cucconi, O. (1968). Un nuovo test non parametrico per il confronto tra due gruppi campionari. Giornale degli Economisti e Annali di Economia, XXVII: 225-248.

Marozzi, M. (2013). Nonparametric simultaneous tests for location and scale testing: A comparison of several methods. Communications in Statistics - Simulation and Computation, 42(6): 1298-1317.

Marozzi, M. (2009). Some notes on the location-scale Cucconi test. Journal of Nonparametric Statistics, 21(5): 629-647.

See Also

cucconi.test, cucconi.dist.perm and cucconi.dist.boot

Examples

xvec <- rnorm(30)
yvec <- rnorm(30) * 1.3 + 0.5
cucconi.teststat(x = xvec, y = yvec)

tpepler/nonpar documentation built on May 13, 2023, 11:23 a.m.