Hello,
I am fitting natural effects models with medflex and when I run the neEffdecomp() function I get the following error message:
Error in names(dat1) <- all.vars(formula) :
'names' attribute [5] must be the same length as the vector [3]
If I run summary(mymodel) I get the standard outcome table, so I do not know where can the problem be.
Thank you very much.