simsem / semTools

Useful tools for structural equation modeling
74 stars 35 forks source link

Error in the reliability() function #96

Closed ecordonP closed 2 years ago

ecordonP commented 2 years ago

Hi

I have installed semTools' version 0.5-5 and when using reliability() to determine the reliability of a measurement scale I get the following error message:

Error in keys[[scales]] : this S4 class is not subsettable

Prior to upgrading the package to version 0.5-5 the same code was working correctly

Thanks in advance

TDJorgensen commented 2 years ago

If you would like me to be able to figure out the problem, please provide a reproducible example (i.e., post data and syntax).

TDJorgensen commented 2 years ago

This appears to be fixed in the development version, using a reprex someone posted on the lavaan forum.

TDJorgensen commented 2 years ago

Further update from that post on the lavaan forum: The problem appears to occur when psych is also loaded (after semTools), so you can prevent confusion using

semTools::reliability()