View source: R/jsd_continuous_ci.R
| jsd_continuous_ci | R Documentation |
Bootstrap confidence interval for continuous JSD
jsd_continuous_ci(
x,
y,
B = 1000,
conf_level = 0.95,
L = NULL,
U = NULL,
base = 2,
bw = "nrd0",
kernel = "gaussian",
grid_n = 4096,
qrange = c(0.001, 0.999),
extend = 3,
eps = 1e-12,
renormalize = TRUE,
seed = NULL,
na_rm = TRUE,
na_rm_failed = TRUE
)
x |
Numeric vector for group 1. |
y |
Numeric vector for group 2. |
B |
Number of bootstrap replicates. |
conf_level |
Confidence level. Defaults to 0.95. |
L |
Optional lower integration bound. |
U |
Optional upper integration bound. |
base |
Logarithm base. Defaults to 2. Use 'exp(1)' for nats. |
bw |
Bandwidth passed to [stats::density()]. |
kernel |
Kernel passed to [stats::density()]. |
grid_n |
Number of grid points used for KDE. |
qrange |
Quantile range used when 'L' and 'U' are not supplied. |
extend |
Extension multiplier for the automatically chosen range. |
eps |
Small constant for numerical stability. |
renormalize |
Logical; renormalize estimated densities over the grid? |
seed |
Optional random seed. |
na_rm |
Logical; remove missing values? |
na_rm_failed |
Logical; drop failed bootstrap draws when summarizing? |
An object of class '"jsd_ci"'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.