You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error happens when trying to find initial values for the flexsurvreg fit. It does this by calling survreg(..., dist="lognormal") on the natural-scale survival times. This results in the invalid survival times error you see. I'm not sure whether or not survreg is supposed to work on data that are interval censored from 0 to Inf....
You can work around this by supplying initial values: flexsurvreg(..., inits=c(1,1,0,0),...) works for me on this example.
I should probably work around this too - perhaps by calling survreg(..., dist="gaussian") on the log times as you did.
thanks for the work-around, works fine if inits is specified.
sorry for the confusion. actually there are no data that are interval
censored from 0 to Inf (that would be meaningless). Each observation is
either left censored or right censored, though. yes, survreg is supposed to
work in this case.
On Fri, Apr 5, 2019 at 12:52 PM Chris Jackson ***@***.***> wrote:
The error happens when trying to find initial values for the flexsurvreg
fit. It does this by calling survreg(..., dist="lognormal") on the
natural-scale survival times. This results in the invalid survival times
error you see. I'm not sure whether or not survreg is supposed to work on
data that are interval censored from 0 to Inf....
You can work around this by supplying initial values: flexsurvreg(...,
inits=c(1,1,0,0),...) works for me on this example.
I should probably work around this too - perhaps by calling survreg(...,
dist="gaussian") on the log times as you did.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#62 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA478hkKPhTIIUZQdGEuZ_knYLWIzGy7ks5vd6lsgaJpZM4cfgAr>
.
Hi I am using flexsurv via
I was expecting that flexsurvreg would estimate the same model as survival::survreg. Instead, I got an error on my system:
Is this because interval censored data are NOT supported? all of the outputs in these data are interval/left/right censored. (no un-censored outputs)
If interval censored data are supported, then is this a bug? Any known fixes/work-arounds?
The text was updated successfully, but these errors were encountered: