Skip to contents

The regcell package provides the functions to compute the CR-Lasso (cellwise regularized Lasso) proposed by Peng Su, Samuel Muller, Garth Tarr and Suojin Wang. The manuscript can be found here.

We have included a demo (Quick demo), a simu (Simulation) and a realdata (Bone mineral density data) in vignettes.

We also created an online R repository with some example scripts.

Installation

You can install the package using:

remotes::install_github("PengSU517/regcell", build = FALSE)

For macOS users, you may see this error related to gfortran when installing:

ld: warning: search path '/opt/gfortran/lib/gcc/aarch64-apple-darwin20.0/12.2.0' not found
ld: warning: search path '/opt/gfortran/lib' not found
ld: library 'gfortran' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [regcell.so] Error 1
ERROR: compilation failed for package ‘regcell’

If that happens, please install the GNU Fortran compiler from this page: https://mac.r-project.org/tools/ (for example, this direct link gfortran-12.2-universal.pkg) and then try

remotes::install_github("PengSU517/regcell", build = TRUE)