Skip to content

Bootstrapping instable for iv_2SRIF #36

Description

@jguski

Hello again!
Thank you very much for closing the two issues so quickly, this is very helpful.
I've actually just run into another obstacle related to bootstrapping, a very obscure one this time:

If the event rate is very low in the data (~1 % or similar), it may happen that the bootstrapped data sample does not contain any observation for which the event occurred, at least in one of the groups. This does not seem to be a problem for some of the estimators (e.g., AIPTW seems to work well), but others crash (I observed the problem for iv_2SRIF). The error I get for bootstrap iteration X is: task X failed - "need at least two non-NA values to interpolate".

Maybe it would be possible to enable bootstrap sampling stratified by event as a new feature, or fix this problem further downstream?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions