Skip to contents

Evaluate sensitivity to smoothing concentration

Usage

sensitivity_bandwidth_grid(
  theta,
  target,
  space = c("cylindrical", "toroidal"),
  kappa_values = c(8, 12, 20, 32)
)

Arguments

theta

Conditioning angle in radians.

target

Real-valued response or second angle.

space

Either "cylindrical" or "toroidal".

kappa_values

Numeric vector of candidate concentrations.

Value

A data frame of compact sensitivity summaries.

Examples

dat <- simulate_cylindrical(n = 60, seed = 1)
sensitivity_bandwidth_grid(dat$theta, dat$x, space = "cylindrical", kappa_values = c(8, 12))
#>         space kappa mean_range mean_sigma mean_rho
#> 1 cylindrical     8   3.228224  0.7848828       NA
#> 2 cylindrical    12   3.463063  0.7192836       NA