Skip to content

variables with more 2 states #36

@drelo

Description

@drelo

Hi again, sorry if this is explained elsewhere but can we feed a variable (like drug or treatment) that has more than 2 states?
I performed the SIAMCAT analysis with age, response and gender with no issues. But I added therapy as another variable (there are NAs + 3 classes of therapy) and drug (6 classes + NAs) and the cofounder step fails and I got an error regarding the variables

Error in factor(mvar, levels = sort(unique(na.omit(mvar))), labels = var.level.names[[m]]) : 
  invalid 'labels'; length 0 should be 1 or 6

Thanks in advance for your help

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