This function filters the input matrix x by features variability.
A feature is kept if part of the top variable features, where the cutoff is defined by threshold.
Default is 0.25 (i.e. select features in the top 25\
Two measures of variability are possible.
Usage
filter_by_variability(
x,
threshold = 0.25,
logger,
method = c("sd", "IQR", "mad")
)Arguments
- x
the input matrix, where rows are observations and columns are variables.
- threshold
the cutoff
- logger
a Logger
- method
the measure of variability, i.e. the standard deviation (
sd), the interquartile range (IQR, the median absolute deviation (mad))
Value
A Filtered object