Learn R Programming

R/flevr: flexible, ensemble-based variable selection

Software author: Brian Williamson

Methodology authors: Brian Williamson, Ying Huang

Introduction

flevr is an R package for doing variable selection based on flexible ensembles. The package provides functions for extrinsic variable selection using the Super Learner and for intrinsic variable selection using the Shapley Population Variable Importance Measure (SPVIM).

The author and maintainer of the flevr package is Brian Williamson. For details on the method, check out our preprint.

Installation

You can install a development release of flevr from GitHub via devtools by running the following code:

# install devtools if you haven't already
# install.packages("devtools", repos = "https://cloud.r-project.org")
devtools::install_github(repo = "bdwilliamson/flevr")

Example

Issues

If you encounter any bugs or have any specific feature requests, please file an issue.

Citation

After using the flevr package, please cite the following:

@article{williamson2023,
    author={Williamson, BD and Huang, Y},
    title={Flexible variable selection in the presence of missing data},
    journal={International Journal of Biostatistics},
    year={2023},
    url={https://arxiv.org/abs/2202.12989}
}

License

The contents of this repository are distributed under the MIT license. See below for details:

MIT License

Copyright (c) [2021--present] [Brian D. Williamson]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Copy Link

Version

Install

install.packages('flevr')

Monthly Downloads

171

Version

0.0.4

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Brian D. Williamson

Last Published

November 30th, 2023

Functions in flevr (0.0.4)

get_augmented_set

Get an augmented set based on the next-most significant variables
intrinsic_selection

Perform intrinsic, ensemble-based variable selection
spvim_vcov

Extract a Variance-Covariance Matrix for SPVIM Estimates
get_base_set

Get an initial selected set based on intrinsic importance and a base method
extract_importance_glmnet

Extract the learner-specific importance from a glmnet object
SL_stabs_fitfun

Wrapper for using Super Learner-based extrinsic selection within stability selection
extract_importance_polymars

Extract the learner-specific importance from a polymars object
extract_importance_glm

Extract the learner-specific importance from a glm object
SL.ranger.imp

Super Learner wrapper for a ranger object with variable importance
extract_importance_SL_learner

Extract the learner-specific importance from a fitted SuperLearner algorithm
extract_importance_ranger

Extract the learner-specific importance from a ranger object
biomarkers

Example biomarker data
extract_importance_mean

Extract the learner-specific importance from a mean object
extrinsic_selection

Perform extrinsic, ensemble-based variable selection
extract_importance_svm

Extract the learner-specific importance from an svm object
flevr

flevr: Flexible, Ensemble-Based Variable Selection with Potentially Missing Data
extract_importance_SL

Extract extrinsic importance from a Super Learner object
intrinsic_control

Control parameters for intrinsic variable selection
pool_selected_sets

Pool selected sets from multiply-imputed data
pool_spvims

Pool SPVIM Estimates Using Rubin's Rules
extract_importance_xgboost

Extract the learner-specific importance from an xgboost object