-
Notifications
You must be signed in to change notification settings - Fork 101
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
lav_test_print() skips $stat.group when NULL #363
Conversation
The second commit avoids an error due to the |
Something strange is going on that I need time to track down. Please don't merge this PR yet. |
OK, this PR is ready now. Weirdly, the last issue was hard to track down, because it had nothing to do with the
I wrote a function to compare the
These don't change (no hidden
These do get updated correctly:
|
Thanks! Merged now. |
Thanks! I'm not sure if you find that problematic, since most users will never call Should I add a Note to the lavTestLRT.Rd file about this? |
I will take a look at this soon (next week), when the semester is finally over. |
When I added
lav_update_test_custom_h1()
in PR #328, I set$stat.group <- NULL
because when there is a more restrictedh1.model=
, the updated test is only available for the whole model. This causes an error whenlav_test_print
ing multigroup models that have a hidden@external$h1.model
.So I just added an additional condition in
lav_test_print()
to only print group statsif (ngroups > 1L && !is.null(TEST[[block]]$stat.group))
.