# Compute the realised Lq-quantile score.
set.seed(12345)
p <- 0.7
q <- 2
x <- qnorm(p = p, mean = 0, sd = 1)
y <- rnorm(n = 100, mean = 0, sd = 1)
print(lqquantile_rs(x = x, y = y, p = p, q = q))
print(lqquantile_rs(x = rep(x = x, times = 100), y = y, p = p, q = q))
Run the code above in your browser using DataLab