Skip to content

Error with multicategorical mediator #15

@olivierISCIII

Description

@olivierISCIII

Dear medflex Team,

I tried to use the weighting-based approach with a multicategorical mediator variable and got the following error:

expData <- neWeight(cut(negaff,3) ~ att + gender + educ , family = multinomial(), data = UPBdata, FUN = vgam)
## Error in pred[i, as.character(x[i])] : incorrect number of dimensions

The version of medflex that I have installed is 0.6-6.
Best regards.

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