# \donttest{
# Example 1: Specifying x for point estimation with manually selected xi range
# from a fixed bandwidth
biasBound_density(
X = sample_data$X,
x = 1,
h = 0.09,
xi_lb = 1,
xi_ub = 12,
if_plot_ft = TRUE,
kernel.fun = "Schennach2004"
)
# Example 2: Density estimation with automatic bandwidth selection using cross-validation
# biasBound_density(
# X = sample_data$X,
# h = NULL,
# h_method = "cv",
# xi_lb = 1,
# xi_ub = 12,
# if_plot_ft = FALSE,
# kernel.fun = "Schennach2004"
# )
# Example 3: Density estimation with automatic bandwidth selection using Silverman's rule
# biasBound_density(
# X = sample_data$X,
# h = NULL,
# h_method = "silverman",
# methods_get_xi = "Schennach",
# if_plot_ft = TRUE,
# kernel.fun = "Schennach2004"
# )
# }
Run the code above in your browser using DataLab