survival analysis using R
1
0
Entering edit mode
7.9 years ago
rsabrina93 ▴ 10
mrna_grade_surv<-coxph(Surv(Survival,Vital_status)~Grades,conf.type="none")
Error in Surv(Survival, Vital_status) : Time variable is not numeric

what do i do?

R • 4.0k views
ADD COMMENT
0
Entering edit mode
Survival    Vital_status
-0.0328549  0
-0.0328549  0
-0.0328549  0
0.0328549   0
0.0657098   1

this is the sample data.

ADD REPLY
0
Entering edit mode
7.9 years ago

Most likely, you should convert your time variable to a numeric type. It could be as simple as using as.numeric() but it depends on what type your data is.

ADD COMMENT
0
Entering edit mode

I did that. but the curve is not right. but earlier when I did the analysis with the same code it worked. why not for this.?

ADD REPLY

Login before adding your answer.

Traffic: 1611 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