Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Surv(time, status) : Time variable is not numeric #17

Open
vzsmitj opened this issue Apr 29, 2021 · 0 comments
Open

Error in Surv(time, status) : Time variable is not numeric #17

vzsmitj opened this issue Apr 29, 2021 · 0 comments

Comments

@vzsmitj
Copy link

vzsmitj commented Apr 29, 2021

I'm trying to perform the survival analysis but I keep getting the following error message:

Error in Surv(time, status) : Time variable is not numeric

I have a survival df which says the values in the two columns are both numeric so I'm not sure what the issue is!

str(BCON_os)
'data.frame': 234 obs. of 2 variables:
$ os.time : num 27 57.4 77.5 32.5 89.6 16 4.5 13.8 18.6 73.5 ...
$ os.status: num 1 1 0 1 0 1 1 1 1 1 ...
imsig_survival (exp = BCON_expr, cli = BCON_os, r = 0.6, time = 'os.time', status= 'os.status')
Error in Surv(time, status) : Time variable is not numeric

Please can anyone advise?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant