Skip to content

Issue with only 1 variable in the model #100

@adayim

Description

@adayim

The explain_survival function will fail if there is only 1 variable in the model. As the code below will convert this data to a vector and the nrow(data) will return NULL. Hence the n will be NULL and line 220 will fail.

data <- possible_data[, -1]

This can be fixed by changing this line to

data <- possible_data[, -1, drop = FALSE]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions