View source: R/cucconi.teststat.R
cucconi.teststat | R Documentation |
Calculates the test statistic for the Cucconi two-sample location-scale test.
cucconi.teststat(x, y, m = length(x), n = length(y))
x |
Vector of values. |
y |
Vector of values. |
m |
Length of |
n |
Length of |
This is a utility function used by cucconi.test
, cucconi.dist.perm
and cucconi.dist.boot
, but can also be called directly if required.
Returns the test statistic for Cucconi's test (scalar).
Theo Pepler
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.
cucconi.test
, cucconi.dist.perm
and cucconi.dist.boot
xvec <- rnorm(30)
yvec <- rnorm(30) * 1.3 + 0.5
cucconi.teststat(x = xvec, y = yvec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.