Using bootCFA for my CFA, my original model plots fine via drawDiag. Boot vector output does not. Any ideas? Ex:
pDiag <- drawDiag( bootCFA( runCFA(stx, df), 400) )
Using bootCFA for my CFA, my original model plots fine via drawDiag. Boot vector output does not. Any ideas? Ex:
pDiag <- drawDiag( bootCFA( runCFA(stx, df), 400) )
hey, maybe its a mismatch of type? i had similar prob and fixed it by converting the boot output to the same model format as the original cfa. sometimes drawdiag can be picky with types. check and try converting your boot vect output
In my experience, ensuring that the bootstrapped output matches the structure of your original CFA model was key to solving this issue. I encountered a similar problem where the drawing function wouldn’t accept the boot vector because of slight misalignments in the data structure. I resolved it by explicitly reformatting and aligning the indices of the bootstrapped object to match the expected format of the drawDiag function. Additionally, verifying that no data components were missing or misnamed in the bootstrapped output helped prevent further errors when plotting the path diagram.
Hey everyone, I’ve been tinkering around with this myself and had a thought that might help. Have you compared the structure of your bootstrapped object to your original CFA model using something like the str() function? I found that sometimes subtle differences in attributes or object classes can trip up drawDiag. It might be worth checking if any metadata or specific names are missing or altered in the boot output. Also, I wonder if wrapping your bootstrapped model with some extra formatting or manually setting a class attribute could make drawDiag recognize it properly. What has been your experience with inspecting those boot objects?
I’m curious if tweaking these internals made a difference for anyone else on the thread.