Learn R Programming

rare

The R package implements the rare feature selection framework introduced in Yan, X. and Bien, J. (2018) "Rare Feature Selection in High Dimensions".

To install rare using the devtools R package, type

devtools::install_github("yanxht/rare", build_vignettes = TRUE)

in R. This installs rare and builds its vignette. Learn to use rare with its vignette by typing

vignette("rare-vignette")

in R.

Copy Link

Version

Install

install.packages('rare')

Monthly Downloads

138

Version

0.1.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Xiaohan Yan

Last Published

June 16th, 2025

Functions in rare (0.1.2)

data.hc

Hierarchical clustering tree for adjectives in TripAdvisor data set
data.rating

TripAdvisor hotel review ratings
rarefit

Fit the rare feature selection model
rarefit.predict

Make predictions from a rarefit object and a rarefit.cv object
group.recover

Recover aggregated groups of leaf indices
rarefit.cv

Perform K-fold cross validation
rare-package

Model path for tree-based lasso framework for selecting rare features
find.leaves

Find all descendant leaves of a node in an hclust tree
group.plot

Visualize groups by coloring branches and leaves of an hclust tree
tree.matrix

Generate matrix A encoding ancestor-descendant relationships in an hclust tree
data.dtm

Document-term matrix for adjectives in TripAdvisor hotel reviews