Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Failed to run correlation matrix input in SEM

Any users meet the same problem like this? I copypaste this R code for JASP manual and modified based on own needs, but it seems to fail to run.


Comments

  • Where did you find info on this? Also I don't think you need to change the syntax manually...

  • I got code from https://osf.io/xkg3j. I just changed matrix and name of variables according my data.

  • The variance-covariance (or correlation) matrix need to be in your data.

    You can try running R code from within JASP, but you need to do this through the R Console module, not in the analyses like you did in your screenshot. But the simplest is simply importing the data in the form of a vcov/correlation matrix, or to input it manually from the "edit data" pane.

    Here's the JASP file with the data resulting from running the R code in the manual from within R and exporting as a .csv then loading into JASP.

    Then in the SEM analysis you can write a model like MC ~ MA + MS

  • Thank you, patc3! Let me try first

Sign In or Register to comment.