Train various models using a default parameter gird search or user specified parameters
fitPlp(trainData, modelSettings, search = "grid", analysisId, analysisPath)
An object of type TrainData
created using splitData
data extracted from the CDM.
An object of class modelSettings
created using one of the function:
setLassoLogisticRegression() A lasso logistic regression model
setGradientBoostingMachine() A gradient boosting machine
setRandomForest() A random forest model
setKNN() A KNN model
The search strategy for the hyper-parameter selection (currently not used)
The id of the analysis
The path of the analysis
An object of class plpModel
containing:
The trained prediction model
The preprocessing required when applying the model
The cohort data.frame with the predicted risk column added
A list specifiying the modelDesign settings used to fit the model
The model meta data
The covariate importance for the model
The user can define the machine learning model to train (regularised logistic regression, random forest, gradient boosting machine, neural network and )