I am using an already written R code which has a line of code as shown below
model_predictors <- buildModel(flag, data, outcomeName, folder)
model<-model_predictors$model
predictorsNames<-model_predictors$predictorsNames
auc <- model_predictors$auc
save(model, file=paste(folder,studyName,'_model_', flag$model[1], '_', outcomeName,".Rda",sep=''))
As you can see in the last line of code, the (training) model is saved in folder
in a .Rda
file format with a naming convention _model_
. Now, I have to use this model to test/evaluate on unseen dataset.
So now my question, I see a .Rda
file in my folder path and I can load the .Rda
file in Rstudio but how do I make inference from this model? I am new to R and can anyone help me with this please?
Can someone help me understand how to run this model please?