powered by
Randomize feature order to eliminate any position-dependent effects
randomize_feature_order(dataset, outcome_colname)
Dataset with feature order randomized.
Data frame with an outcome variable and other columns as features.
Column name as a string of the outcome variable (default NULL; the first column will be chosen automatically).
NULL
Nick Lesniak, nlesniak@umich.edu
Kelly Sovacool, sovacool@umich.edu
dat <- data.frame( outcome = c("1", "2", "3"), a = 4:6, b = 7:9, c = 10:12, d = 13:15 ) randomize_feature_order(dat, "outcome")
Run the code above in your browser using DataLab