roc - Calculate many AUCs in R -
i new r. using rocr package in r calculate auc, can 1 predictor fine. looking perform many auc calculations 100 different variables.
what have done far following:
varlist <- names(mydata)[2:101] formlist <- lapply(varlist, function(x) paste0("prediction(",x,"mydata$v1)) however formulas in text format, , as.formula giving me error. appreciated! in advance!
the function inside lapply looks outputting statement prediction(varmydata$v1). guessing want run command. if so, want
lapply(varlist,function(x) prediction(mydata[x])) but hard tell without reproducible situation. also, looks code has missing quote.
Comments
Post a Comment