# Compute the Huber quantile identification function.
set.seed(12345)
n <- 10
df <- data.frame(
x = runif(n = n, min = -2, max = 2),
y = runif(n = n, min = -2, max = 2),
p = runif(n = n, min = 0, max = 1),
a = runif(n = n, min = 0, max = 1),
b = runif(n = n, min = 0, max = 1)
)
df$huberquantile_if <- huberquantile_if(x = df$x, y = df$y, p = df$p, a = df$a,
b = df$b)
print(df)
Run the code above in your browser using DataLab