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 in if (variance_tracker == 0) { : missing value where TRUE/FALSE needed #44

Closed
gwang921921 opened this issue Jan 12, 2021 · 5 comments

Comments

@gwang921921
Copy link

Hi Mairead! Thank you for keep updating this package. I got this error message when running a multilevel model: Error in if (variance_tracker == 0) { :
missing value where TRUE/FALSE needed

I think someone has mentioned this problem before. It is because there is only one unit for some groups. Would you mind saying one more time how you helped them fix the problem? Many thanks!!

@mkshaw
Copy link
Owner

mkshaw commented Jan 12, 2021

@gwang921921 Hi! Do you have the latest version of r2mlm downloaded (v 0.2.0)? You can check with packageVersion("r2mlm"). If not, can you try installing that new version and re-running your code, then tell me if the problem persists?

@gwang921921
Copy link
Author

Thanks for your quick response! Unfortunately, it still exists.

@mkshaw
Copy link
Owner

mkshaw commented Jan 12, 2021

Hmm, so I believe the last person who had that problem deleted their group with only one unit, but I thought I fixed this bug so that groups could have only one unit. Are you able to provide a reproducible example or email me your data and code?

@gwang921921
Copy link
Author

Thank you so much for offering help. Would you mind letting me know your email address?

@mkshaw
Copy link
Owner

mkshaw commented Jan 12, 2021

Thank you for helping me improve the package! My email is mairead.shaw@mail.mcgill.ca.

@mkshaw mkshaw closed this as completed in ec9b3d6 Jan 12, 2021
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