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

clere: Simultaneous Variables Clustering and Regression

![GitHub tag](https://img.shields.io/github/tag/mcanouil/clere.svg?label=latest tag&include_prereleases) Codecov test
coverage R-CMD-check CRAN_Status_Badge cran checks_worst CRAN_Download_total

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).

Installation

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")

Citing clere

print(citation("clere"), "html")
print(citation("clere"), "bibtex")

Example

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)

Getting help

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.



mcanouil/clere documentation built on Sept. 20, 2021, 1:59 p.m.