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.