| add.meta.pred {SIAMCAT} | R Documentation |
This function adds metadata to the feature matrix to be later used as predictors
add.meta.pred(siamcat, pred.names = NULL, std.meta =
TRUE, verbose = 1)
siamcat |
object of class siamcat-class |
pred.names |
vector of names of the variables within the metadata to be added to the feature matrix as predictors |
std.meta |
boolean, should added metadata features be standardized?,
defaults to |
verbose |
control output: |
an object of class siamcat-class with metadata added to the features
data(siamcat_example)
# Add the Age of the patients as potential predictor
siamcat_age_added <- add.meta.pred(siamcat_example, pred.names=c('age'))
# Add Age, BMI, and Gender as potential predictors
# Additionally, prevent standardization of the added features
siamcat_meta_added <- add.meta.pred(siamcat_example, pred.names=c('age',
'bmi', 'gender'), std.meta=FALSE)