Learn R Programming

oasis (version 3.0.4)

oasis_training: OASIS Training

Description

This function trains the OASIS model from a data.frame produced by an element from the output of the function oasis_train_dataframe

Usage

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)

Arguments

...

data.frame(s) produced by the oasis_train_dataframe function

formula

formula to be fit by glm model

remove_preproc

a logical stating if oasis_dataframe needs to be extracted from the list of objects. Will call list$oasis_dataframe

Value

Returns a glm object containing the trained OASIS coefficients to be used by the function oasis_predict.

Examples

Run this code
# NOT RUN {
df = oasis::example_oasis_df
df$GoldStandard = df$GOLD_Lesions
oasis_training(df)
# }

Run the code above in your browser using DataLab