Skip to content

This repository contains an R package to perform split regularized regression as defined in Christidis, Lakshmanan, Smucler and Zamar (2020) (https://doi.org/10.1080/00401706.2019.1635533).

Notifications You must be signed in to change notification settings

AnthonyChristidis/SplitReg

Repository files navigation

Build Status CRAN_Status_Badge Downloads

SplitReg

This package provides functions for computing the split regularized regression estimators defined in Christidis, Lakshmanan, Smucler and Zamar (2019).


Installation

You can install the stable version on R CRAN.

install.packages("SplitReg", dependencies = TRUE)

You can install the development version from GitHub

library(devtools)
devtools::install_github("AnthonyChristidis/SplitReg")

Usage

# A small example
library(MASS)
library(SplitReg)
set.seed(1)
beta <- c(rep(5, 5), rep(0, 45))
Sigma <- matrix(0.5, 50, 50)
diag(Sigma) <- 1
x <- mvrnorm(50, mu = rep(0, 50), Sigma = Sigma)
y <- x %*% beta + rnorm(50)
fit <- cv.SplitReg(x, y, num_models=10) # Use 10 models
coefs <- predict(fit, type="coefficients")

License

This package is free and open source software, licensed under GPL (>= 2).

About

This repository contains an R package to perform split regularized regression as defined in Christidis, Lakshmanan, Smucler and Zamar (2020) (https://doi.org/10.1080/00401706.2019.1635533).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published