Entering edit mode
7.5 years ago
mbk0asis
▴
700
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.
GIYF; LMGTFY.
https://www.google.com/search?q=Loglik+converged+before+variable&oq=Loglik+converged+before+variable
Wow. Could you expand on that a wee bit?
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.