Error message when running the "OptimalCutpoints"
0
0
Entering edit mode
2.7 years ago
mohsamir2016 ▴ 30

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 This is the data set

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 ?

program R • 404 views
ADD COMMENT

Login before adding your answer.

Traffic: 1966 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6