The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
This R package provides a program to conduct group-wise variable selection and estimation for quantile and robust mean regression. The group lasso penalty \(p_{\lambda_j}(\beta_j)=\lambda_j\|\beta_j\|_2\), where \(j\) is the group index, is used for group-wise variable selection (Yuan and Lin, 2006). For quantile regression, the check loss is approximated by the Huber loss for the median and the tilted version of Huber loss at other quantiles. This approximation overcomes the nondifferentiability at the origin of check loss, which may otherwise cause instable estimation. Statistical consistency has been shown for this approximated quantile regression estimates (Sherwood and Li, 2021). The estimation algorithm follows Yang and Zou (2015), and it is computational efficient and stable. A robust estimation of mean regression is a byproduct of this implementation as Huber loss, with appropriate choices of the tuning parameter, is intrinsically a robust loss function that is insensitive to outliers.
Currently not available on CRAN. User can install from github with following code.
::install_github("shaobo-li/hrqglas") devtools
library(hrqglas)
<- 200
n<- 30
p<- matrix(rnorm(n*p),n,p)
x0<- cbind(x0, x0^2, x0^3)[,order(rep(1:p,3))]
X<- -2+X[,1]+0.5*X[,2]-X[,3]-0.5*X[,7]+X[,8]-0.2*X[,9]+rt(n,2)
y<- rep(1:p, each=3)
group
# quantile regression
<- hrq_glasso(x=X, y=y, group.index=group, method="quantile", tau=0.3)
fit<- cv.hrq_glasso(x=X, y=y, group.index=group, method="quantile", tau=0.3, loss="check")
fit.cvplot(fit.cv)
# mean regression
<- hrq_glasso(x=X, y=y, group.index=group, method="mean")
fit1<- cv.hrq_glasso(x=X, y=y, group.index=group, method="mean", loss="se")
fit.cv1plot(fit.cv1)
Sherwood, B., & Li, S. (2022). Quantile regression feature selection and estimation with grouped variables using Huber approximation. Statistics and Computing, 32(5), 75. https://doi.org/10.1007/s11222-022-10135-w
Yang, Y. and Zou, H., (2015) A Fast Unified Algorithm for Solving Group-lasso Penalize Learning Problems, Statistics and Computing, 25 1129-1141. https://doi.org/10.1007/s11222-014-9498-5.
Yuan, M. and Lin, Y., (2005) Model Selection and Estimation in Regression with Grouped Variables, , 68 49-67. https://doi.org/10.1111/j.1467-9868.2005.00532.x.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.