oasis_training: OASIS Training

Description Usage Arguments Value Examples

View source: R/oasis_training.R

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

1
2
3
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

1
2
3
df = oasis::example_oasis_df
df$GoldStandard = df$GOLD_Lesions
oasis_training(df)

neuroconductor-devel/oasis documentation built on April 1, 2021, 2:04 p.m.