--
You received this message because you are subscribed to the Google Groups "blavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blavaan+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blavaan/2a1ad6c7-4c08-43eb-8e4c-4f6a388d13ccn%40googlegroups.com.
Hi Ed and Mauricio,
Thanks, the formulation of the beta distributions was a lot more clear after the explanation and the plot suggestion.
The model setup I’ve come up with now is stated below. I’m interested in the correlations between several latent variables, with answers to a survey as observed variables. For prior distributions, I’ve created a beta distribution with a correlation estimate as a mean and a variance of 0.01. The Bayes factor indicates that this model is better than the one without the priors, but it could be that its influence is more informative than wanted as Ed suggested. What do you think of this approach? And what would be the best way to compare these results to the results of the same model in Lavaan?
Thanks a lot!
Annemieke
library(blavaan)
library(readxl)
Data <- read_excel("~/3 Studie/BEP/Prime/R/Data/Data corrected.xlsx")
model<-'
#measurement part
SMC =~ SM1 + SM3 + SM4 + SM11 + SM12 + SM13 + SM14 + SM15 + SM16 + SM18 + SM19 + SM20 + SM21 + SM26
competence_satisfaction =~ Needs1 + Needs7 + Needs13 + Needs19
competence_frustration =~ Needs2 + Needs8 + Needs14 + Needs20
autonomy_satisfaction =~ Needs5 + Needs11 + Needs17 + Needs23
autonomy_frustration =~ Needs6 + Needs12 + Needs18 + Needs24
relatedness_satisfaction =~ Needs3 + Needs9 + Needs15 + Needs21
relatedness_frustration =~ Needs4 + Needs10 + Needs16 + Needs22
autonomous_motivation =~ Motivation2 + Motivation4 + Motivation7 + Motivation8 + Motivation11 + Motivation13 + Motivation15 + Motivation16
controlled_motivation =~ Motivation1 + Motivation3 + Motivation5 + Motivation6 + Motivation9 + Motivation10 + Motivation12 + Motivation14
academic_performance =~ Grade
#structural part
relatedness_satisfaction ~ SMC
relatedness_frustration ~ SMC
competence_satisfaction ~ SMC
competence_frustration ~ SMC
autonomous_motivation ~ competence_satisfaction + competence_frustration + autonomy_satisfaction + autonomy_frustration + relatedness_satisfaction + relatedness_frustration
controlled_motivation ~ competence_satisfaction + competence_frustration + autonomy_satisfaction + autonomy_frustration + relatedness_satisfaction + relatedness_frustration
academic_performance ~ autonomous_motivation + controlled_motivation
#priors
SMC ~~ prior("beta(48.69922,11.23828)") * competence_satisfaction #1
SMC ~~ prior("beta(48.69922,11.23828)") * relatedness_satisfaction #2
SMC ~~ prior("beta(33.47415,58.23585)") * competence_frustration #3
SMC ~~ prior("beta(33.47415,58.23585)") * relatedness_frustration #4
competence_satisfaction ~~ prior("beta(48.33765,10.97235)") * autonomous_motivation #5
autonomy_satisfaction ~~ prior("beta(48.33765,10.97235)") * autonomous_motivation #6
relatedness_satisfaction ~~ prior("beta(48.73498,11.265)") * autonomous_motivation #7
competence_satisfaction ~~ prior("beta(21.52807,57.04153)") * controlled_motivation #8
autonomy_satisfaction ~~ prior("beta(58.18198,33.769)") * controlled_motivation #9
relatedness_satisfaction ~~ prior("beta(21.20825,56.90685)") * controlled_motivation #10
competence_frustration ~~ prior("beta(30.83955,58.55045)") * autonomous_motivation #11
autonomy_frustration ~~ prior("beta(30.83955,58.55045)") * autonomous_motivation #12
relatedness_frustration ~~ prior("beta(30.83955,58.55045") * autonomous_motivation #13
competence_frustration ~~ prior("beta(56.2104,19.7496)") * controlled_motivation #14
autonomy_frustration ~~ prior("beta(56.2104,19.7496)") * controlled_motivation #15
relatedness_frustration ~~ prior("beta(56.2104,19.7496)") * controlled_motivation #16
academic_performance ~~ prior("beta(56.62967,38.94783)") * autonomous_motivation #17
academic_performance ~~ prior("beta(44.1,53.9)") * controlled_motivation #18
'
fit<-bsem(model, data=Data)
--
You received this message because you are subscribed to the Google Groups "blavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blavaan+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blavaan/feb5be60-d495-4ab1-a1fc-1b7c4a52394fn%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "blavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blavaan+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blavaan/3d5e5fd1-3b45-4421-a788-3497a83593a8n%40googlegroups.com.