[R-es] errror al determinar puntos óptimos de corte (librería: OptimalCutpoints)

Fernando Sanchez fernandsanche en yahoo.es
Sab Jun 10 17:51:47 CEST 2017


Hola a todos,
Al ejecutar el código que veis más abajo:
 library(OptimalCutpoints)prediccion<-c(0.49165923,0.52759793,0.30213400,0.33468349,0.14979703,0.47401846,0.52216404,0.42018794,0.92168073,0.76893929,0.83362668,0.38251162,0.70803701,0.49165923,0.94462558)
real<-c(0,1,0,0,0,0,1,1,1,1,1,0,1,0,1)datos_OPTIMO<-cbind(prediccion,real)
cutpoint1 <- optimal.cutpoints(X = "prediccion", status = "real",tag.healthy = 1, methods = "Youden", data = datos_OPTIMO,categorical.cov =NULL, pop.prev = NULL,control = control.cutpoints(), ci.fit = TRUE)
Me sale el siguiente error:
Error: Not all needed variables are supplied in 'data'.
¿Alguien me podría decir qué estoy haciendo mal?
gracias,
Fernando

	[[alternative HTML version deleted]]



Más información sobre la lista de distribución R-help-es