AVE & CR in the CFA

444 views
Skip to first unread message

Husain Akareem

unread,
Dec 30, 2020, 11:29:15 PM12/30/20
to lavaan
So far, I think this is one of the best R groups to discuss issues related to one specific package (Lavaan). I simply love this group. 

During the CFA, how can I get the AVE and CR values for each factor/construct? Is there any specific function or command that generates these values or should I manually calculate these values using an excel sheet (which is very time consuming)?

balal izanloo

unread,
Dec 31, 2020, 12:18:21 AM12/31/20
to lav...@googlegroups.com
Hi
First instal semTools then After fitting your model in lavaan use reliability function from semTools to compute AVE and CR. for example:

library(lavaan)
library(semTools)

CFA.2F <-'
F1=~ PVD2+PVD5+PVD6+PVD8+PVD10+PVD12+PVD14
F2=~ PVD1+PVD3+PVD4+PVD7+PVD9+PVD11+PVD13+PVD15
'
CFA.2F.sus <- cfa(CFA.2F, data = sus1,std.lv = TRUE,ordered=names(sus1), estimator = "WLSMV")
summary(CFA.2F.sus , fit.measures = TRUE, standardized = TRUE)
# what you need
print(reliability(CFA.2F.sus,return.total = TRUE), digits = 3)



 


On Thu, Dec 31, 2020 at 7:59 AM Husain Akareem <h...@iuj.ac.jp> wrote:
So far, I think this is one of the best R groups to discuss issues related to one specific package (Lavaan). I simply love this group. 

During the CFA, how can I get the AVE and CR values for each factor/construct? Is there any specific function or command that generates these values or should I manually calculate these values using an excel sheet (which is very time consuming)?

--
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/dc0996c2-6f87-4aa2-861d-5200fb6f20bdn%40googlegroups.com.

Husain Akareem

unread,
Jan 9, 2021, 12:42:38 AM1/9/21
to lav...@googlegroups.com
Dear Balal,

Thanks for sharing the codes. I'll definitely try that. 😄


Kind regards,
Husain Akareem, PhD
Assistant Professor
International University of Japan


You received this message because you are subscribed to a topic in the Google Groups "lavaan" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lavaan/yy83Vmr7mac/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lavaan+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lavaan/CAKpMYbLJU-EM0icjPHvsX3B2ZJ-ckDrJFf1%2B5aS9k%2BKe8gKa0Q%40mail.gmail.com.

drsco...@gmail.com

unread,
Jan 15, 2021, 2:22:45 PM1/15/21
to lavaan
I have a calculator that does this based on loadings. It's at https://www.thestatisticalmind.com/composite-reliability/ it will soon be moved to enablytics.com but is still at that site now.

balal izanloo

unread,
Jan 15, 2021, 11:56:04 PM1/15/21
to lav...@googlegroups.com
Greeting
Simply instal semTools package then After fitting your model in lavaan use the reliability function from semTools to compute AVE and CR. 
for example:

library(lavaan)
library(semTools)

CFA.2F <-'F1=~ PVD2+PVD5+PVD6+PVD8+PVD10+PVD12+PVD14
          F2=~ PVD1+PVD3+PVD4+PVD7+PVD9+PVD11+PVD13+PVD15'

CFA.2F.sus <- cfa(CFA.2F, data = sus1,std.lv = TRUE,ordered=names(sus1), estimator = "WLSMV")

summary(CFA.2F.sus , fit.measures = TRUE, standardized = TRUE)
# what you need
print(reliability(CFA.2F.sus,return.total = TRUE), digits = 3)



--
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.

Cami Salazar

unread,
Jan 16, 2021, 11:05:27 AM1/16/21
to lav...@googlegroups.com
Hello! 
Greetings! Thank you for your guidance. 

I am trying to estimate AVE and CR using reliability function on semTools as you suggested. I am also using the WLSMV estimator, but fitting a 1 factor model. However, I get this error:

Error in ly[[i]] %*% ve[[i]] : non-conformable arguments

I re-installed the semTools package, but I get the same error again. Any suggestions?

Best regards,

Cami 



balal izanloo

unread,
Jan 16, 2021, 12:42:12 PM1/16/21
to lav...@googlegroups.com
Pleasd past and then Send your comands to thd group so any one can help you, if he/she want.

Terrence Jorgensen

unread,
Jan 17, 2021, 10:58:10 PM1/17/21
to lavaan
I am trying to estimate AVE and CR using reliability function on semTools as you suggested. I am also using the WLSMV estimator, but fitting a 1 factor model. However, I get this error:

Error in ly[[i]] %*% ve[[i]] : non-conformable arguments

I re-installed the semTools package, but I get the same error again. Any suggestions?

This example works fine for me in the current CRAN versions:

library(semTools)
example(lavTables)
reliability(fit)

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

Message has been deleted

Pat Malone

unread,
May 21, 2021, 7:51:13 AM5/21/21
to lav...@googlegroups.com
Harmanjit,

?reliability (or the semTools manual on CRAN) gives all the detail you could want on this.

Pat

On Fri, May 21, 2021 at 4:40 AM Harmanjit Singh <harman...@gmail.com> wrote:
Hi Terrence,

The output using reliability () function shows following values: alpha, omega, omega2, omega3, and avevar.
While I understand 'avervar' represents AVE, I am in fix whether 'alpha' represents chronbach's alpha or composite reliability? 
Kindly share your views.

--
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.


--
Patrick S. Malone, PhD
Sr Research Statistician, FAR HARBΦR
This message may contain confidential information; if you are not the intended recipient please notify the sender and delete the message.
Reply all
Reply to author
Forward
0 new messages