Closed dasiav7 closed 7 years ago
This is most likely related to the fact that your original data frame is called 'data'. Please rename (e.g. into 'data2') and try to run updated code (replacing 'data' by 'data2'). I have had similar issues in the past, e.g. by running the code below:
data <- UPBdata
impData <- neImpute(UPB ~ attbin * negaff + gender + educ + age,
family = binomial, data = data)
neMod <- neModel(UPB ~ attbin0 * attbin1 + gender + educ + age, family = binomial, expData = impData)
which illustrates that the error message is not related to the fact that your mediator is vector-valued (as might have been your first guess).
I'm going to see if there's a way to get rid of this bug. In the meantime, please use the suggested modification.
Thank you! It works!
This has now been solved by replacing the line
data <- eval(extrCall(x)$data)
in helper function extrData
by
data <- extrCall(x)$data
data <- eval(data, envir = globalenv())
It was okay when I used
se = "robust"
, however, I got error message when I usedse = "bootstrap"
.The error message is
argument is missing, with no default
What's the problem?