
This function trains the OASIS model from a data.frame
produced by an element from the output of the
function oasis_train_dataframe
oasis_training(..., formula = GoldStandard ~ FLAIR_10 * FLAIR + FLAIR_20 *
FLAIR + PD_10 * PD + PD_20 * PD + T2_10 * T2 + T2_20 * T2 + T1_10 * T1 + T1_20
* T1, remove_preproc = FALSE)
data.frame
(s) produced by the
oasis_train_dataframe
function
formula to be fit by glm model
a logical stating if oasis_dataframe
needs to be
extracted from the list of objects. Will call list$oasis_dataframe
Returns a glm
object containing the trained OASIS
coefficients to be used by the function oasis_predict
.
# NOT RUN {
df = oasis::example_oasis_df
df$GoldStandard = df$GOLD_Lesions
oasis_training(df)
# }
Run the code above in your browser using DataLab