# Example usage:
x <- rnorm(100)
y <- rnorm(100)
# Run the pointwise estimation
result <- dpilc_PTW(x, y, blockmax = 5, divisor = 20, trim = 0.01,
proptrun = 0.05, gridsize = 40, range.x = range(x),
use_raw_data = TRUE)
# Inspect the result
plot(result$x, result$h, type = "l", col = "blue", xlab = "X", ylab = "Bandwidth Estimate")
Run the code above in your browser using DataLab