powered by
This function simulates quantile curves used as a toy example
simulate_quantile_curves(x1, alpha, beta, t_vec)
quan_obs: n-by-m matrix of quantile functions
n-by-1 predictor vector
parameter in location transformation
parameter in variance transformation
a length m vector - common grid for all quantile functions
Wasserstein F-tests and confidence bands for the Frechet regression of density response curves, Alexander Petersen, Xi Liu and Afshin A. Divani, 2019
alpha = 2 beta = 1 n = 100 x1 = runif(n) t_vec = unique(c(seq(0, 0.05, 0.001), seq(0.05, 0.95, 0.05), seq(0.95, 1, 0.001))) quan_obs = simulate_quantile_curves(x1, alpha, beta, t_vec)
Run the code above in your browser using DataLab