Dear Mike & colleagues,
I'm currently sitting at a moderator analysis with the new OSMASEM approach (continuous moderators in MASEM - yeah!).
Unfortunately I get an error message, which I can't assign. I want to use HDI (Human Development Index) values as moderator variables for the regression coefficients (A-Matrix).
However, I get the following error message when I try to create the model with the moderator.
Code:
M1 <- create.vechsR(A0=RAM1$A, S0=RAM1$S, Ax=Ax) Error in as.vector(data) : no method for coercing this S4 class to a vector
I'd be happy if you had any idea how to solve this problem. Does it maybe have anything to do with the type of data I have?
I have my code and my data attached.
Best
Marius