Hi folks,
A PhD student and R newbie here. I'm trying to run a mediation model (sample n = 384) with BAS mediating the relationship between SIS and Flourishing (SIS -> BAS -> Flourishing). SIS consists of a higher-order factor structure – specifically, it is formed by two latent factors, self-identification (with subscales solidarity, satisfaction, centrality) and self-definition (subscales stereotyping and homogeneity).
Here is the script:
model<-'
self_invest =~ Solidarity + Satisfaction + Centrality
self_def =~ Stereotyping + Homogeneity
SIS1 =~ self_invest+ self_def
Flourishing ~ b*BAS + c*SIS1
BAS ~ a*SIS1
#confounders
BAS ~ GENDER+ RACIAL + BODYSIZE +HEALTH + SEXUAL
SIS1 ~ GENDER+RACIAL + BODYSIZE +HEALTH + SEXUAL
Flourishing ~ GENDER+RACIAL + BODYSIZE +HEALTH + SEXUAL
direct1 := c
indirect1 := a*b
total effect1 := c+a*b'
fit<-sem(model, data=data, estimator = "MLM")
Fit indices are largely adequate (CFI = . 958, TLI = 918, RMSEA = .058, SRMR = .042. However, self-investment is coming up with negative variance:
self_invest -0.500 0.205 -2.442 0.015 -0.497 -0.497
I also want to stop lavaan from automatically using marker method, as it is override the first subscale, solidarity:
self_invest =~
Solidarity 1.000 1.003 0.720
Is anyone able to identify: 1. what might be causing the negative variance, and 2. how to rid the marker method? Thanks!