IMR Machine Learning Code.
For anyone else who wants to build on this, here’s the code to generate the prediction algorithm for my Independent Medical Review Prediction App: In the R language #Libraries require(tidyr) require(caret) require(randomForest) require(FactoMineR) require(magrittr) require(tm) #Load Data df<-read.csv(“link to data goes here”, stringsAsFactors=F) str(df) #Data Cleaning #https://stackoverflow.com/questions/33180058/coerce-multiple-columns-to-factors-at-once cols<-c(“DiagnosisCategory”, “DiagnosisSubCategory”, “TreatmentCategory”, “TreatmentSubCategory”, “Determination”, “Type”, “AgeRange”, “PatientGender”, […]