Skip to content

VSURF

Variable Selection Using Random Forests

v1.2.1 · Oct 21, 2025 · GPL (>= 2)

Description

Three steps variable selection procedure based on random forests. Initially developed to handle high dimensional data (for which number of variables largely exceeds number of observations), the package is very versatile and can treat most dimensions of data, for regression and supervised classification problems. First step is dedicated to eliminate irrelevant variables from the dataset. Second step aims to select all variables related to the response for interpretation purpose. Third step refines the selection by eliminating redundancy in the set of variables selected by the second step, for prediction purpose. Genuer, R. Poggi, J.-M. and Tuleau-Malot, C. (2015) <https://journal.r-project.org/articles/RJ-2015-018/>.

Downloads

548

Last 30 days

7360th

1.5K

Last 90 days

6.3K

Last year

Trend: +3.8% (30d vs prior 30d)

CRAN Check Status

1 ERROR
13 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 ERROR
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (1 non-OK)
ERROR r-devel-macos-arm64

tests

Running ‘testthat.R’ [2s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(VSURF)
  > 
  > test_check("VSURF")
  Saving _problems/test_orange-35.R
  Saving _problems/test_orange-39.R
  Saving _problems/test_orange-41.R
  Saving _problems/test_orange-55.R
  Saving _problems/test_orange-56.R
  Saving _problems/test_orange-69.R
  Saving _problems/test_orange-70.R
  Saving _problems/test_orange-71.R
  [ FAIL 8 | WARN 1 | SKIP 0 | PASS 25 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_orange.R:32:5'): Variable importance ─────────────────────────
  Expected `orange.vsurf$imp.mean.dec` to equal `c(...)`.
  Differences:
  9/9 mismatches (average diff: 10.3)
  [1] 2956.4 - 2954.5 ==   1.96
  [2]  201.3 -  216.3 == -14.95
  [3]  101.2 -   75.1 ==  26.08
  [4]   13.9 -   19.9 ==  -6.06
  [5]  -13.2 -  -24.7 ==  11.55
  [6]  -29.6 -  -32.0 ==   2.37
  [7]  -29.9 -  -39.0 ==   9.13
  [
...[truncated]...
erences:
  3/3 mismatches (average diff: 2.08)
  [1] 723 - 723 == -0.317
  [2] 447 - 448 == -1.053
  [3] 774 - 779 == -4.860
  ── Failure ('test_orange.R:56:5'): OOB erros of nested models ──────────────────
  Expected `orange.vsurf$err.pred` to equal 721.4986.
  Differences:
  1/1 mismatches
  [1] 721 - 721 == -0.483
  ── Failure ('test_orange.R:68:5'): Thresholds for the 3 steps ──────────────────
  Expected `min(orange.vsurf$pred.pruned.tree)` to equal 42.413.
  Differences:
  1/1 mismatches
  [1] 56 - 42.4 == 13.6
  ── Failure ('test_orange.R:70:5'): Thresholds for the 3 steps ──────────────────
  Expected `orange.vsurf$sd.min` to equal 16.85953.
  Differences:
  1/1 mismatches
  [1] 19 - 16.9 == 2.13
  ── Failure ('test_orange.R:71:5'): Thresholds for the 3 steps ──────────────────
  Expected `orange.vsurf$mean.jump` to equal 331.2949.
  Differences:
  1/1 mismatches
  [1] 327 - 331 == -3.81
  
  [ FAIL 8 | WARN 1 | SKIP 0 | PASS 25 ]
  Error:
  ! Test failures.
  Execution halted

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-macos-arm64

tests

Running ‘testthat.R’ [2s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(VSURF)
  > 
  > test_check("VSURF")
  Saving _problems/test_orange-35.R
  Saving _problems/test_orange-39.R
  Saving _prob
...[truncated]...
: Thresholds for the 3 steps ──────────────────
  Expected `orange.vsurf$mean.jump` to equal 331.2949.
  Differences:
  1/1 mismatches
  [1] 327 - 331 == -3.81
  
  [ FAIL 8 | WARN 1 | SKIP 0 | PASS 25 ]
  Error:
  ! Test failures.
  Execution halted

Reverse Dependencies (2)

imports

suggests

Dependency Network

Dependencies Reverse dependencies doParallel foreach randomForest rpart SAiVE MSclassifR VSURF

Version History

new 1.2.1 Mar 10, 2026
updated 1.2.1 ← 1.2.0 diff Oct 20, 2025
updated 1.2.0 ← 1.1.0 diff Jul 15, 2024
updated 1.1.0 ← 1.0.4 diff Jul 17, 2019
updated 1.0.4 ← 1.0.3 diff Apr 9, 2018
updated 1.0.3 ← 1.0.2 diff Apr 25, 2016
updated 1.0.2 ← 1.0.1 diff Oct 14, 2015
updated 1.0.1 ← 1.0.0 diff Oct 11, 2015
updated 1.0.0 ← 0.8.2 diff May 14, 2015
updated 0.8.2 ← 0.8.1 diff May 11, 2014
updated 0.8.1 ← 0.8 diff Feb 4, 2014
updated 0.8 ← 0.7.6 diff Dec 17, 2013
updated 0.7.6 ← 0.7.5 diff Nov 12, 2013
updated 0.7.5 ← 0.7 diff Oct 6, 2013
updated 0.7 ← 0.6 diff Sep 9, 2013
updated 0.6 ← 0.5 diff Jul 25, 2013
new 0.5 May 27, 2013