Skip to contents

Extracts the estimated bias bound parameters and bandwidth

Usage

# S3 method for class 'bbnp_regression'
coef(object, ...)

Arguments

object

An object of class bbnp_regression

...

Additional arguments (unused)

Value

Named numeric vector with A (amplitude), r (decay rate), B (Y bound), and h (bandwidth)

Examples

# \donttest{
set.seed(1)
x <- runif(500) + runif(500)
y <- 2 * x - x^2 + rnorm(length(x), sd = 0.3)
fit <- bias_bound_regression(x, y, bw = 0.1)
#> Warning: Fitted envelope slope r-hat = 1.84 is below the smoothness floor r >= 2 the method assumes: the Fourier transform does not show a clear power-law decay over the window (likely a supersmooth density or a non-power-law/non-monotone cross-spectrum). The returned envelope dominates the fitted frequency grid, but Schennach's coverage theorem may not apply. Inspect plot(fit, type = "ft").
coef(fit)
#>         A         r         B         h 
#> 4.4348248 2.0000000 0.8230857 0.1000000 
# }