knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )

Implements an empirical Bayes approach for simultaneous variable clustering and regression. This version also (re)implements in C++ an R script proposed by Howard Bondell that fits the Pairwise Absolute Clustering and Sparsity (PACS) methodology (see Sharma et al (2013) doi: 10.1080/15533174.2012.707849).
You can install the released version of clere from CRAN with:
install.packages("clere")
And the development version from GitHub with:
# install.packages("remotes") remotes::install_github("mcanouil/clere")
print(citation("clere"), "html")
print(citation("clere"), "bibtex")
library(clere) x <- matrix(rnorm(50 * 100), nrow = 50, ncol = 100) y <- rnorm(50) model <- fitClere(y = y, x = x, g = 2, plotit = FALSE) model plot(model) clus <- clusters(model, threshold = NULL) clus predict(model, newx = x + 1) summary(model)
If you encounter a clear bug, please file a minimal reproducible example on github.
For questions and other discussion, please contact the package maintainer.
Please note that this project is released with a Contributor Code of Conduct.
By participating in this project you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.