Dear All, I have a dataset with 20 patients, one measured variable (miR-21), a condition (condition) with 0 representing healthy and 1 representing diseased. I do not have any covariate. The data looks like attached
I run this code to get the optimal cutpoint for the "miR-21", which is a diagnostic maker for the condition that I am testing:
optimal.cutpoint.Youden<-optimal.cutpoints(X = "miR-21", status = "Condition", tag.healthy = 0, methods = "Youden", data = ATB_Copy, pop.prev = NULL, categorical.cov = NULL, control = control.cutpoints(generalized.Youden = FALSE), ci.fit = TRUE, conf.level = 0.95, trace = FALSE)
Iam keep getting the error: Error: Can't subset columns that don't exist. x Locations 4, 5, 2, 3, 9, etc. don't exist. i There are only 1 column.
Any help ?