Skip to contents

Integrated from simpipe & SimBench.

Usage

calc_kde_test(ref_mat, sim_mat)

Arguments

ref_mat

2-column numeric matrix for reference.

sim_mat

2-column numeric matrix for simulation.

Value

z-statistic testing discrepancy between bivariate kernel density estimates.

Examples

ref <- matrix(stats::rnorm(100), 50, 2)
sim <- matrix(stats::rnorm(100), 50, 2)
calc_kde_test(ref, sim)
#> [1] 0.5465832