Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EFA factors and bootstrapped inference #376

Open
FlorianScharf opened this issue Aug 5, 2024 · 1 comment
Open

EFA factors and bootstrapped inference #376

FlorianScharf opened this issue Aug 5, 2024 · 1 comment

Comments

@FlorianScharf
Copy link

Hello there,

I have discovered a bug when using bootstrapped inference in combination with exploratory factors (ESEM). I attach a minimal example to reproduce the problem. I confirmed that it is still present in the most recent developer version.

There are two symptoms:
(1) the bootstrapped standard errors are suspicious it looks as if the first loading of factor 2 is fixed
(2) when trying to get CIs, an error occurs

My suspicion is that what is actually bootstrapped are the unrotated loadings (because in the initial solution, the first loading of f2 is indeed fixed at zero due to the echelon constraint).

I am not sure if this is intended behavior in the sense that we do not support bootstrapped ESEMs or if it is an honest bug. In either case, I am happy to have a look at it after my holiday in September (just let me know). But as an urgent fix, I think we should not allow users to use exploratory factors with boostrap and throw an error.

Best,
Florian

Example_Bootstrap.R.zip

@yrosseel
Copy link
Owner

yrosseel commented Sep 3, 2024

I certainly never tested ESEM + bootstrap, so it is very likely that something is not quite OK there. If you would find the time to look at it after your holidays, I would be grateful (as I hardly find time to work on lavaan these days).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants