coxph error : missing value where TRUE/FALSE needed
0
0
Entering edit mode
4.5 years ago
mbk0asis ▴ 630

Hi, all!

I'was playing with a dummy data like below to study survival analysis.

> test
  age status   E2  E4 rs4266886 rs61822977 rs6733839 rs10202748 rs115124923 rs115675626
1  65      0 0.63 2.8      0.91       0.92      0.86       0.94        1.19         0.9
2  70      1 0.63 2.8      0.91       0.92      0.86       0.94        1.19         0.9
3  75      1 0.63 2.8      0.91       0.92      0.86       0.94        1.19         0.9
4  80      0 0.63 2.8      0.91       0.92      0.86       0.94        1.19         0.9
5  85      1 0.63 2.8      0.91       0.92      0.86       0.94        1.19         0.9
6  90      1 0.63 2.8      0.91       0.92      0.86       0.94        1.19         0.9
7  95      1 0.63 2.8      0.91       0.92      0.86       0.94        1.19         0.9
8 100      1 0.63 2.8      0.91       0.92      0.86       0.94        1.19         0.9

When I ran using this code

fit <- coxph(Surv(age,status) ~ rs4266886+rs61822977+rs6733839+rs10202748+rs115124923+rs115675626, data=test)

I got a following error

Error in if (any(infs)) warning(paste("Loglik converged before variable ",  : 
  missing value where TRUE/FALSE needed

But when I ran like below

fit <- coxph(Surv(age,status) ~ rs4266886, data=test)

I didn't get any error messages.

survival analysis coxph • 2.4k views
ADD COMMENT
0
Entering edit mode

Wow. Could you expand on that a wee bit?

ADD REPLY
0
Entering edit mode

Expecting some more information about what the OP has done to resolve the issue, given that a plain google search yields a lot of results.

PS: I don't how that landed into an answer rather than a comment! Corrected.

ADD REPLY

Login before adding your answer.

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