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 lavaan::inspect #12

Open
auduman opened this issue May 5, 2019 · 1 comment
Open

Error in lavaan::inspect #12

auduman opened this issue May 5, 2019 · 1 comment

Comments

@auduman
Copy link

auduman commented May 5, 2019

This is my first time reporting an issue, so please forgive any oversights!

I'm trying to calculate multiple estimates of reliability for some survey data, using 'scaleReliability' or 'scaleStructure'. I have reverse coded the relevant columns and am now trying to get omega, omega hierarchical, ordinal alpha and coefficient H estimates, and am encountering the following error message:

scaleStructure(dat = attitudes_l, items = 'all')
Error in lavaan::inspect(fit, "coef") : object 'fit' not found

Not sure how to fix this! Any help would be appreciated

@vince-p
Copy link

vince-p commented May 20, 2020

I had the same issue and it was resolved by changing the column names in my dataframe.
The reverse code function appends a "-" to the name of any variable that is reverse coded. The scaleReliability function doesnt seem to work with those names. Removing the hyphen from the names fixes the issue.

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