Calculating R squared in Lavaan

1,531 views
Skip to first unread message

fin nugent

unread,
Mar 22, 2022, 12:59:02 PM3/22/22
to lavaan
Hello,

I'm currently using UTAUT in my dissertation project. I have had people complete a survey relating to intention to use Bitcoin as a currency and have ran a SEM analysis on it. The final step I want to use is to have an R squared value for Behavioural intention. I currently only have r squared values for the other 6 variables. Does anyone know a way in which i can get r squared for this people or is it as simple as its the average of the other 6? 

Here is my code and results:

semmodel <- 'performanceexpectancy =~ PE1 + PE2 + PE3
Effortexpectancy =~ EE1 + EE2 + EE3 + EE4
Socialinfluence =~ SI1 + SI2 + SI3
Facilitatingconditions =~ FC1 + FC2  
Behaviouralintention =~ BI1 + BI2 + BI3 + BI4
Perceivedrisk =~ PR1 + PR2 + PR3
Financialliteracy =~  FL1 + FL2

performanceexpectancy ~ Behaviouralintention
Effortexpectancy ~ Behaviouralintention
Socialinfluence ~ Behaviouralintention
Facilitatingconditions ~ Behaviouralintention
Perceivedrisk ~ Behaviouralintention
Financialliteracy ~ Behaviouralintention'


Bitcoin.fit2 <-sem(semmodel, data = surveydata)
summary(Bitcoin.fit2, standardized = TRUE, fit.measures = TRUE, rsquare = TRUE)

RSQUARE:
 prfrmncxpctncy    0.416
    Effortexpctncy    0.085
    Socialinfluenc    0.270
    Faclttngcndtns    0.064
    Perceivedrisk     0.147
    Financialltrcy    0.025

Unfortunately these are not great r square results haha but would appreciate advise on how to get a result for behavioural intention even if not a great number, thanks :)
SEM Model.pdf

Christian Arnold

unread,
Mar 22, 2022, 5:58:19 PM3/22/22
to lav...@googlegroups.com
lavInspect(Bitcoin.fit2, "rsquare")


Von: lav...@googlegroups.com <lav...@googlegroups.com> im Auftrag von fin nugent <finlay....@gmail.com>
Gesendet: Dienstag, 22. März 2022, 17:59
An: lavaan <lav...@googlegroups.com>
Betreff: Calculating R squared in Lavaan
--
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/19336a3c-6100-403b-a4c2-08854e56ffd7n%40googlegroups.com.

Fran

unread,
Mar 22, 2022, 7:00:22 PM3/22/22
to lavaan
Behavioural intention should be your endogenous variable I guess - so both your model ("SEM Model.pdf") and your syntax is wrong. 
Behavioural intention is predicted by performanceexpectancy, Effortexpectancy, etc.
Behavioural intention ~ performanceexpectancy + Effortexpectancy + ... + ...

Best,
Fran


Reply all
Reply to author
Forward
0 new messages