kde.local.test(x1, x2, H1, H2, h1, h2, fhat1, fhat2, gridsize, binned=FALSE,
bgridsize, verbose=FALSE, supp=3.7, mean.adj=FALSE, signif.level=0.05,
min.ESS)
Hpi
or hpi
is called by default.kde
kde.loctest
which is a list with fields:kde
The required input is either x1,x2
and H1,H2
, or
fhat1,fhat2
, i.e. the data values and bandwidths or objects of class
kde
. In the former case, the kde
objects are created.
If the H1,H2
are missing then the default are the plugin
selectors Hpi
. Likewise for missing h1,h2
.
The mean.adj
flag determines whether the
second order correction to the mean value of the test statistic should be computed.
min.ESS
is borrowed from Godtliebsen et al. (2002)
to reduce spurious significant results in the tails, though by it is usually
not required for small to moderate sample sizes.
kde.test
, plot.kde.loctest
library(MASS)
x1 <- crabs[crabs$sp=="B", 4]
x2 <- crabs[crabs$sp=="O", 4]
loct <- kde.local.test(x1=x1, x2=x2)
plot(loct)
## see examples in ? plot.kde.loctest
Run the code above in your browser using DataLab