# I-LAMM **Repository Path**: Tomhappy/I-LAMM ## Basic Information - **Project Name**: I-LAMM - **Description**: 人民大学2020届谢忠明,毕业设计“高维数据下的正则化稳健回归一一基于I-LAMM算法”的代码 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-15 - **Last Updated**: 2024-04-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # I-LAMM This repo implements iterative local adaptive majorize-minimization algorithm proposed by [Fan et al](https://doi.org/10.1214/17-AOS1568) based on my understanding and [ILAMM repo](https://github.com/XiaoouPan/ILAMM). ## Functions - `rr`: Rank regression related function penalized by Lasso, SCAD, MCP, e.g. smooth convoluted rank regression by [Zhou et al](https://doi.org/10.1080/01621459.2023.2202433) and rank regression by [Wang et al](https://doi.org/10.1080/01621459.2020.1840989). - `glm`: Generalized linear regression penalized by Lasso, SCAD, MCP. ## Usage ```r n <- 100 p <- 200 beta <- as.matrix(c(5, 2, 0, 0, -3, rep(0, p - 5)), nrow = p) X <- matrix(rnorm(n*p), nrow = n) epsilon <- matrix(rnorm(n),nrow = n) y <- X %*% beta + epsilon ## SCRR scrr.lasso <- rr(X, y, "CRR", "Lasso") scrr.scad <- rr(X, y, "CRR", "SCAD") scrr.mcp <- rr(X, y, "CRR", "MCP") ## Rank rr.lasso <- rr(X, y, "RR", "Lasso") rr.scad <- rr(X, y, "RR", "SCAD") rr.mcp <- rr(X, y, "RR", "MCP") # Convert y into binary variable y <- (y > 0) ## Logistic regression lr.lasso <- glm(X, y, penalty = "Lasso") lr.scad <- glm(X, y, penalty = "SCAD") lr.mcp <- glm(X, y, penalty = "MCP") ``` ## Reference [1]. FAN J, LIU H, SUN Q, et al. I-LAMM for sparse learning: Simultaneous control of algorithmic complexity and statistical error[J]. The Annals of Statistics, 2018, 46(2): 814-841. [2]. WANG L, PENG B, BRADIC J, et al. A Tuning-free Robust and Efficient Approach to High-dimensional Regression[J]. Journal of the American Statistical Association, 2020, 115(532): 1700-1714. [3]. ZHOU L, WANG B, ZOU H. Sparse Convoluted Rank Regression in High Dimensions[J]. Journal of the American Statistical Association, 2023, 0(0): 1-13.