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{
X <- gen_sample_data(size = 500, dgp = "2_fold_uniform", seed = 1)
Y <- 2 * X - X^2 + rnorm(length(X), sd = 0.3)
fit <- biasBound_condExpectation(Y, X, h = 0.1)
coef(fit)
#>         A         r         B         h 
#> 4.4348248 2.0000000 0.8230857 0.1000000 
# }