-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
The package version is 0.6.2.
When I was plotting
> model = coxph(Surv(os, status) ~ group, total)
Warning message:
In coxph.fit(X, Y, istrat, offset, init, control, weights = weights, :
Loglik converged before variable 1,2 ; coefficient may be infinite.
> print(forest_model(model))
Error in grDevices::axisTicks(log10(exp(forest_min_max)), TRUE) :
log - axis(), 'at' creation, _LARGE_ range: invalid {xy}axp or par; nint=5
axp[0:1]=(1e-307,1e+308), usr[0:1]=(0,inf); i=615, ni=123
It will run into error in plot when coefficient may be infinite warning is showed.
The result of model seems normal, only some value is too big.
> model
Call:
coxph(formula = Surv(os, status) ~ group, data = total)
coef exp(coef) se(coef) z p
groupIHR 1.943e+01 2.746e+08 2.993e+03 0.006 0.995
groupEHM 2.032e+01 6.712e+08 2.993e+03 0.007 0.995
Likelihood ratio test=96.25 on 2 df, p=< 2.2e-16
n= 224, number of events= 89
I think it is acceptable to see inf value when the value is too big.
Metadata
Metadata
Assignees
Labels
No labels