I am trying to create a diagram but the function for it from package library(semPlot) takes an object. I can use factanal object or many other objects from FA packages.
I chose factanal for simplicity and tried to say:
fa_obj <- factanal(x) replace loadings in fa_obj with my own matrix of loadings A. but I get an error : Error in semPlotModel.default(loadings(object)) : Object not recognized as SEM model fa_obj$loadings <- A
My issue probably stems from other data in the object doesn't match my loadings.
Anyway, what is the easiest object I can create to be able to use pat diagram tool?