Quantile-based regression for the assessment of economic and ecological risks