Skip to content

multiroc column issue #1

@Gster963

Description

@Gster963

I have been trying to use multi_roc for a few days and I run into this error.

I have 4 binary predictors of an outcome (DX) and would like to run multi-ROC to generate the AUC.
I get the error below

summary(data.complete)
DX_pred_febsz DX_pred_etio DX_pred_enceph DX_pred_szfreq DX_true
Min. :0.0000 Min. :0.0000 Min. :0.0000 Min. :0.0000 Min. :0.0000
1st Qu.:0.0000 1st Qu.:0.0000 1st Qu.:0.0000 1st Qu.:1.0000 1st Qu.:0.0000
Median :1.0000 Median :0.0000 Median :0.0000 Median :1.0000 Median :1.0000
Mean :0.7266 Mean :0.4865 Mean :0.2229 Mean :0.9224 Mean :0.6675
3rd Qu.:1.0000 3rd Qu.:1.0000 3rd Qu.:0.0000 3rd Qu.:1.0000 3rd Qu.:1.0000
Max. :1.0000 Max. :1.0000 Max. :1.0000 Max. :1.0000 Max. :1.0000

multiroc.data <- multi_roc(data.complete, force_diag = TRUE)

Error in colnames<-(*tmp*, value = character(0)) :
attempt to set 'colnames' on an object with less than two dimensions

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