Make 3D kernel smooth distribution

make_3d_kernel_dist(
  output,
  x,
  y,
  z,
  n = 200,
  lims = c(-0.1, 1.1, -0.1, 1.1, -0.1, 1.1),
  h
)

Arguments

output

A matrix of simulation output.

x, y, z

The name of the target variable.

n, lims, h

Passed to ks::kde() (but using the format of MASS::kde2d() to make it consistent across functions). For ks::kde, H = diag(h, 2, 2).

Value

A MASS::kde2d-type list of smooth distribution.