Trying to plot an ROC curve to determine effectiveness of a neural network 
model in R. 

using the neuralnet package I created nn1a: 
nn1a<-neuralnet(warstns ~ aigenlz+ 
p2l+anoclinv2+flinstab+mill+minconl+fllgdppclz+lpoplz+floil+flmtnestz+c_peaceyears,
 data=na.omit(dfram1), hidden=4) 

then using the lroc function from the epicalc package I tried lroc(nn1a) but 
came up with the error message 

Error in `colnames<-`(`*tmp*`, value = c("Non-diseased", "Diseased")) : 
  length of 'dimnames' [2] not equal to array extent 

Does anyone know any ways to get ROC curves to work with neural network models? 
Any other packages, model manipulation, etc? 

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to