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

cor_auto fails with missing="fiml" but does not tell the user #88

Open
falkcarl opened this issue Mar 1, 2024 · 2 comments
Open

cor_auto fails with missing="fiml" but does not tell the user #88

falkcarl opened this issue Mar 1, 2024 · 2 comments

Comments

@falkcarl
Copy link

falkcarl commented Mar 1, 2024

Hi Sacha,

I am posting here instead of under https://github.com/SachaEpskamp/bootnet though I discovered this when calling estimateNetwork from bootnet.

There are cases where missing="fiml" and corMethod = "cor_auto are specified, bootnet calls qgraph::cor_auto which calls lavaan::lavCor, but then lavCor fails to converge. Since qgraph suppresses all warnings from lavaan, the user is not notified of this convergence failure; perhaps the covariance matrix is also passed back and treated as though there was no problem.

What should be the default behavior of qgraph or bootnet in this case?

As an aside, I was also doing this with regularization (EBICglasso), and when this problem occurs, it often results in an empty network being estimated.

Attempting to attach an example with data below.

Best regards,
Carl

missexample.zip

@SachaEpskamp
Copy link
Owner

Hi Carl,

Thanks for spotting this. What do you think should be the default behavior? I can just remove the warning supression perhpas. I think if an empty network is estimated when this happens it is not that problematic as it just makes the method more conservative.

@falkcarl
Copy link
Author

falkcarl commented Jul 25, 2024 via email

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