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]]

