jsd_ci: Bootstrap confidence interval for Jensen-Shannon divergence

View source: R/jsd_ci.R

jsd_ciR Documentation

Bootstrap confidence interval for Jensen-Shannon divergence

Description

Unified front-end for JSD confidence interval estimation for continuous and discrete variables.

Usage

jsd_ci(
  x,
  y,
  type = c("auto", "continuous", "discrete"),
  B = 1000,
  conf_level = 0.95,
  base = 2,
  seed = NULL,
  ...
)

Arguments

x

First vector.

y

Second vector.

type

One of '"auto"', '"continuous"', or '"discrete"'.

B

Number of bootstrap replicates.

conf_level

Confidence level. Defaults to 0.95.

base

Logarithm base. Defaults to 2. Use 'exp(1)' for nats.

seed

Optional random seed.

...

Additional arguments passed to the type-specific bootstrap estimator.

Value

An object of class '"jsd_ci"'.


jsdtools documentation built on March 31, 2026, 1:06 a.m.

Related to jsd_ci in jsdtools...