Distorted M-Quantiles: Depth, Central Regions, and Multiple Output Regression in R
This repository contains a collection of R functions designed to compute distorted
The implemented functions include:
-
dist_mquantile
: Computes distorted$M$ -quantiles for univariate data with a specified power$r$ and distortion function$g$ . -
rexpectile
andrquant
: Robust expectile and quantile calculations with trimming options. -
lsreg
: Fits$M$ -quantile regression models, supporting robust multivariate regression. -
rextreme.points
,qextreme.points
,mqextreme.points
, etc.: Generate extreme points for central regions using halfspace intersections. -
conditional.regions
: Constructs conditional regression regions for multivariate responses, visualizing relationships between predictors and responses.
The theoretical foundation stems from statistical depth literature (e.g., Tukey’s halfspace depth) and
To use this code, ensure you have R installed along with the following packages:
install.packages(c("MASS", "geometry", "depth"))
See the example visualizations in the script for generating mregions.pdf (central regions) and conditional_regions.pdf (conditional regression regions).
The code was created by I. Cascos (https://github.com/icascos) and M. Ochoa. The theoretical description of the procedures is available at https://doi.org/10.3390/math10183272.