
Wrapper of .predict_multiDEGGs for multiDEGGs_filter_combined()
Source:R/feature_selection_for_ML.R
predict.multiDEGGs_filter_combined.RdThis function generates predictions by creating a dataset with single and combined predictors based on the filtering results of a multiDEGGs_filter model.
Usage
# S3 method for class 'multiDEGGs_filter_combined'
predict(object, newdata, interaction.type = "ratio", sep = ":", ...)Arguments
- object
A fitted object of class
multiDEGGs_filtercontaining filtering results with:- keep
Character vector of variable names to keep as single predictors
- pairs
Data frame or matrix with two columns specifying pairs of variables to combine
- newdata
A data frame containing the new data for prediction. Must contain all variables specified in
object$keepandobject$pairs.- interaction.type
Character string specifying how to combine the paired predictors. Options are:
- "ratio"
Combine paired predictors by dividing the first variable by the second (a/b)
- other
Combine paired predictors by multiplying the variables (a*b)
Default is "ratio".
- sep
Character string used as separator when creating column names for combined predictors. Default is ":".
- ...
Additional arguments passed to the generic function.