semTools 0.5-6 on CRAN

180 views
Skip to first unread message

Terrence Jorgensen

unread,
May 10, 2022, 1:33:20 PM5/10/22
to lavaan
A new version of semTools is on its way to CRAN.  The most visible change will be the deprecation of reliability() and reliabilityL2(), to be replaced by a single compRelSEM() function (also a separate AVE() function, which is not a reliability index).  The new function no longer confusingly returns a plethora of indices, among which users might be tempted to merely pick the largest to report, but instead sets reasonable (perhaps conservative) defaults for new arguments that can be overridden.  The new function also implements better reliability coefficients for multilevel constructs, described by Lai (2021).  These and other changes are listed in the NEWS file.

https://github.com/simsem/semTools/wiki

Terrence D. Jorgensen
Assistant Professor, Methods and Statistics
Research Institute for Child Development and Education, the University of Amsterdam

balal izanloo

unread,
May 12, 2022, 4:56:20 AM5/12/22
to lav...@googlegroups.com
Hi Terrence
I have installed new version of semTools (semTools 0.5-6) from CRAN but no change in its functions has happened. For example see below error. 

> AVE(cfa.4F)
Error in AVE(cfa.4F) : could not find function "AVE" 

--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lavaan/f7c2da4c-28b7-428d-85b9-b9a46ce79c23n%40googlegroups.com.

Terrence Jorgensen

unread,
May 13, 2022, 12:03:49 PM5/13/22
to lavaan
> AVE(cfa.4F)
Error in AVE(cfa.4F) : could not find function "AVE" 

Are you sure the new version was installed?  Sometimes it will fail to do so if the older version is attached in your R session, so it is best to install in a fresh R session (before anything is loaded).  After library(semTools), run sessionInfo() to check it is version 0.5-6

balal izanloo

unread,
May 18, 2022, 6:05:51 AM5/18/22
to lav...@googlegroups.com
Thanks, the problem is solved by deleting and installing the semTools 
Best

--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.

balal izanloo

unread,
May 18, 2022, 6:05:52 AM5/18/22
to lav...@googlegroups.com
Thanks, the problem is solved by deleting and installing the semTools. but the old function (reliability) still is working. Is it correct and interpretable?
> semTools::AVE(cfa.7F)
   FF     M   ADL   SLI     L   EPF   PEF
0.291 0.557 0.359 0.141 0.180 0.214 0.412
> semTools::compRelSEM(cfa.7F)
   FF     M   ADL   SLI     L   EPF   PEF
0.801 0.899 0.787 0.440 0.395 0.675 0.921
> print(semTools::reliability(cfa.7F,return.total= TRUE), digits = 3)
          FF     M   ADL   SLI     L   EPF   PEF total
alpha  0.819 0.896 0.780 0.589 0.379 0.752 0.915 0.943
omega  0.819 0.897 0.795 0.514 0.402 0.734 0.919 0.952
omega2 0.819 0.897 0.795 0.514 0.402 0.734 0.919 0.952
omega3 0.801 0.899 0.787 0.440 0.395 0.675 0.921 0.943
avevar 0.291 0.557 0.359 0.141 0.180 0.214 0.412 0.329
 
Best Regards

--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.

Carlos G. Poses

unread,
May 19, 2022, 3:32:59 AM5/19/22
to lavaan
Hi,

I do think that the default reliability of semTools:: compRelSEM() is just the 'omega3' returned by semTools::reliability(). 

It seems semTools::reliability() is deprecated, which usually means it will be active (i.e., can be used) for some time (but not recommended), and eventually removed.

Best,

Carlos

El dia dimecres, 18 de maig de 2022 a les 12:05:52 UTC+2, b.ez...@gmail.com va escriure:
Reply all
Reply to author
Forward
0 new messages