Closed alexploner closed 1 month ago
Alex: Birzhan and I have been developing the AFT model and may already have fixed this bug. Note that left truncation with AFT models requires an ID, which we may not yet have implemented. These models also require untestable assumptions about the preceding exposures for delayed entry with incomplete history to the time origin. Let's discuss this further when I am back at MEB. Kindly, Mark.
Alex: belatedly, I have fixed a bug in the aft()
code. The simple case of delayed entry with constant exposure assumed before the delayed entry should now work. This does not currently allow for a change of exposure in a subject.
Thank you for this bug report and apologies for the late response.
Sincerely, Mark.
Hi Mark,
I really appreciate your implementation of the generalized spline-based AFT models in your package, however, I run into errors when trying to run aft with delayed entry:
Starting with a corner case, setting the starting time to zero in the ?aft-example leads to an unexpected error message:
Now starting at zero when event times are logged is of course weird, but I would have expected a different error here, not exactly the same as you would get from
survival::survreg
when specifying delayed entry.More seriously, specifying a non-zero starting interval actually crashes my R session (big smoking bomb):
(Also, specifying argument
timveVar0=
does not seem to do anything, but I have not explored this properly, so this is a comment rather than properly part of the issue.)System info: