The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

Entropy and Testing with np

This vignette is meant to be a small package-side introduction to the entropy-based testing tools in np. It is intentionally much shorter than the legacy article-style document and focuses on what the functions are for and one small runnable example.

The fuller narrative treatment now belongs on the gallery site rather than in a shipped package vignette:

Main functions

The main entropy-based testing functions are:

These functions can be computationally demanding, especially when integration and bootstrap resampling are involved.

A small example

For a first run, it is reasonable to begin with a simple univariate comparison and keep the example small enough that bootstrapping remains practical.

library(np)
#> np 0.70-2
#> Examples and guides at https://jeffreyracine.github.io/gallery/
#> See also vignette("np_getting_started", package = "np")
set.seed(42)

n <- 250
x <- rnorm(n)
y <- rnorm(n)

npunitest(x, y, bootstrap = TRUE)
#> 
#> Consistent Univariate Entropy Density Equality Test
#> 399 Bootstrap Replications
#> 
#> Test Statistic 'Srho': 0.001213156   P Value: 0.98997  
#> ---
#> Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#> Fail to reject the null of equality at the 10% level

Practical guidance

Where to go next

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.