christianparet/Survey-on-Open-Science-Practices-in-Functional-Neuroimaging.-Dataset-and-Materials

ESEM_analysis.R

christianparet opened this issue · 2 comments

Several errors, missing functions. Not sure whether this is about issues with my R installation or sth generic. Please check.
Console output when running ESEM_analysis.txt

Trying to run the code and also running into some errors.

L.67: "Datenlänge [112] ist kein Teiler oder Vielfaches der Anzahl der Zeilen [27]"
-> Maybe this occurs because the matrix is created with nrow = 27, but the factor loadings object (esem_efa_4$loadings) appears to be based on 28 variables.

I changed all nrow inputs to 28. Warning messages disappear and results appear to be the same. Maybe Nike can double check on the results end

Issues solved, thanks.
I have two minor comments requiring action:

  • For Bartlett's test and KMO: may be good to add the results you achieved when running the code as comments below the executable code.
  • Understand that the 4-8 factor solutions are in the code for complimentary reasons. However, it is confusing to have all the solutions there without any further explanation. Can we comment out all code that is irrelevant for the paper and add explanation on the top, what factor solution was finally used, why it was used (eg copy-paste from the paper), and explain why the other factor solutions are still in the code (but commented out)?