Hi
I am carry out a mediation structural model and have received the below warning. What does this mean and how can I correct this? Full syntax is attached.
Thanks very much!
> SCTModel2 <- '
+ RBehF1=~BF1_RAV+BF2_RAV+BF3_RAV+BF4_RAV+BF6_RAV+BF7_RAV
+ RJobSat=~RaterJobSat
+ RReward=~RaterReward
+ # direct effect
+ RaterJobSat ~ c*RBehF1
+ # mediator
+ RaterReward ~ a*RBehF1
+ RaterJobSat ~ b*RaterReward
+ # indirect effect (a*b)
+ indirect := a*b
+ # total effect
+ total := c + (a*b)
+ RBehF1~~RaterJobSat
+ RBehF1~~RaterReward
+ RaterReward~~RaterJobSat
+ '
>
> SCT1fit2<-sem(SCTModel2, data = SMBI_Alldata, test = "bollen.stine", se="boot", bootstrap = 5000)
Warning message:
In lav_object_post_check(lavobject) :
lavaan WARNING: the covariance matrix of the residuals of the observed
variables (theta) is not positive definite;
use inspect(fit,"theta") to investigate.
inspect(SCT1fit2,"theta")
BF1_RA BF2_RA BF3_RA BF4_RA BF6_RA BF7_RA RtrJbS RtrRwr
BF1_RAV 0.038
BF2_RAV 0.000 0.029
BF3_RAV 0.000 0.000 0.030
BF4_RAV 0.000 0.000 0.000 0.041
BF6_RAV 0.000 0.000 0.000 0.000 0.026
BF7_RAV 0.000 0.000 0.000 0.000 0.000 0.040
RaterJobSat 0.000 0.000 0.000 0.000 0.000 0.000 0.000
RaterReward 0.000 0.000 0.000 0.000 0.000 0.000 0.117 0.000
What does this mean and how can I correct this?
RJobSat=~RaterJobSat
RReward=~RaterReward
RaterJobSat ~ b*RaterReward
RaterReward~~RaterJobSat
RtrJbS RtrRwr
RaterJobSat 0.000RaterReward 0.117 0.000
SCTModel2 <- 'RBehF1 =~ BF1_RAV + BF2_RAV + BF3_RAV + BF4_RAV + BF6_RAV + BF7_RAVRJobSat =~ RaterJobSatRReward =~ RaterReward# direct effectRJobSat ~ c*RBehF1# mediatorRReward ~ a*RBehF1RJobSat ~ b*RReward# indirect effect (a*b)indirect := a*b# total effect
total := c + (a*b)
'
How do we determine "(b) the 95% CI for the Heywood case includes plausible values."? Is it located in the summary of our model ?
summary(fit, ci=TRUE)