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
Added basic glance and tidy for lavaan models. #233
Conversation
I'd love to get this merged in soon if you're still interested. If you are, can you:
|
Cool. I've added some tests based on the |
Sorry for taking so long to get back to you. Thanks for adding the tests! I've made a couple changes to align with current tidyverse style. These aren't fully documented at the moment, but we've started here. Couple followup requests:
The Travis failures are currently on our end, we're currently only asking PRs to pass the AppVeyor build. |
Just to respond inline below...
logl is log likelihood std.lv std.all std.nox: these are all different types of standardised coefficient. That is, the params are standardised with respect to the latent variables only (std.lv) or all, or just excluding exogenous variables (nox) On reflection I wonder if it would be better to offer this dataframe unstandaqdized by default, and in long form, with an additional
I can add this
The most common case here, I think, is to want to compare models on various common fit indices, and perhaps also check the number of params in the model, and the number of observations. The fit measures included here are based on recommendations/expectations when publishing a model. On reflection, I think it might be best if I added the model N, and the estimator to this and always returned in long form. There's actually no point replicating lavaan::fitmeasures too closely... the trouble there is that one always has to subset the fitmeasures returned by default, and look elsewhere for the N and estimator. I'll the another look |
Thanks! I'll probably change some of the |
This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
nb. the op column is left in the tidy data frame for ease of sorting/filtering.
This addresses issue #27