Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
319 views
in Technique[技术] by (71.8m points)

r - SEM (Structural Equation Model) Moderated Mediation but returns with "information matrix could not be inverted warning"

I'm building a structural equation model that incorporates 4 latent variables: personal lifestyle, social lifestyle, trauma score, and the DV (well-being).

Sample = 360 people.

I've included the final model below. "pl" and "sl" represent personal and social lifestyle. The moderated mediation flows from trauma to resilience (and then the interactions with pl and sl on resilience) to well-being. There are also interactions on pl and sl with trauma in the direct pathway. Here's also a path diagram I whipped up. enter image description here

This is the full warning I receive when running the model:

Warning message:
In lav_model_vcov(lavmodel = lavmodel, lavsamplestats = lavsamplestats,  :
  lavaan WARNING:
    Could not compute standard errors! The information matrix could
    not be inverted. This may be a symptom that the model is not
    identified.

I've used 114 DF and have 61 free parameters (model test baseline uses 147), so I'd be surprised if it's an issue of under-identification, but I also wanted to make sure that I was correctly specifying the model in Lavaan. The SEs I will compute with bootstrapping anyway; but I think this is an issue beyond merely the SEs. The fit is not good (SRMR .119), but I'd imagine that could improve with mod indices; still there's something that doesn't seem right here. Also worth noting that even if I remove the interactions on resilience score, but not the direct pathway, I still get the same warning.

I've included some data here: https://drive.google.com/file/d/1AX50DFNik30Qsyiyp6XnPMETNfVXK83r/view?usp=sharing

Thanks much!


fit.latent_mod_med <- '#factor loadings; measurement model portion
pl =~ exercisescore + mindfulnessscore + promistscore
sl =~ family_support + friendshipcount + friendshipnet + sense_of_community + emotionalsupportscore
trauma =~ neglectscore + abusescore + exposure
wb =~ depressionscore + anxietyscore

#regressions: structural model
  wb ~ age + gender + ethnicity + sesscore + pl:resiliencescore + sl:resiliencescore + pl:trauma + sl:trauma
  resiliencescore ~ age + sesscore + trauma
'

fit.latent_mod_med <- sem(fit.latent_mod_med, data = total, meanstructure = TRUE, std.lv = TRUE)
question from:https://stackoverflow.com/questions/65896425/sem-structural-equation-model-moderated-mediation-but-returns-with-informatio

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...