powered by
This function predicts and returns predictions, based on the model previously trained.
LDL_ML_predict(model, data)
The predicted LDL value(s).
The model with which the predictions will be made.
The data with which the predictions will be made, can either be a single set of (CHOL,HDL,TG) values or a data table of sets of said values.
modelPrediction = LDL_ML_predict(model$model,data.table::data.table(CHOL=170.5,HDL=35.12,TG=175))
Run the code above in your browser using DataLab