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

Error with perfect fit #15

Open
VLDrenth opened this issue Jun 5, 2023 · 1 comment
Open

Error with perfect fit #15

VLDrenth opened this issue Jun 5, 2023 · 1 comment

Comments

@VLDrenth
Copy link

VLDrenth commented Jun 5, 2023

When either the mediator or independent variable is the same as the dependent variable, the GUI crashes when running a model, with console warning:

 S-estimated scale == 0:  Probably exact fit; check your data 
Warning in seq_len(ar) : first element used of 'length.out' argument
Warning: Error in numeric: invalid 'length' argument
@aalfons
Copy link
Owner

aalfons commented Jun 9, 2023

The GUI should catch errors and warnings when executing test_mediation() and then give a more helpful message in the main panel that lists a few common issues and suggestions (e.g., check for missing values or other issues of the data, try increasing the number of bootstrap samples, etc.).

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