Error message for SEM
I'm trying to do SEM in Jasp. Unfortunately, the program wouldn't take my model and giving me this error:
"Error in nlminb(start=start.x, objective=objective_function, gradient=GRADIENT, : NA/NaN gradient evaluation"
Does anybody know what this means?
This is my model (I'm trying to model the association of Neuroticism, Anxiety, Anhedonia, Cognitive Control and brain structure (=cluster). ):
#measurement model
Anxiety =~ STAIS_Sum
Anhedonia =~ SHAPS_Sum
Neuroticism =~ NEOFFI_Neurotizismus
CognitiveControl =~ PfadfinderB
Cluster =~ Neuro_Eigenvalue_FA_anteriorthalamicradiation_R_neg_CLUSTER49
Kontrolle =~ PfadfinderA
Age =~ Alter
Sex =~ Geschlecht
#regressions
Anxiety ~ Neuroticism
Anhedonia ~ Neuroticism
Cluster ~ Neuroticism
Anhedonia ~ Cluster
CognitiveControl ~ Cluster
#correlations
Anhedonia ~~ Anxiety
CognitiveControl ~~ Anhedonia
Thank you for any help!
Julia
Comments
Hi @juliakatharinapfarr,
Thank you for this error report! We will try to figure it out what it means by.
Meanwhile, I am wondering about the two points:
(1) Do all latent variables have only one indicator? I am wondering about this because, usually, one factor has at least two indicators.
(2) It seems like Kontrolle, Age, and Sex are not used in either regressions or correlations. In this case, these three latent variables are treated as exogenous latent variables (i.e., explanatory latent variables). Then, the covariances among Kontrolle, Age, Sex, and Neuroticism are automatically estimated, and I am wondering whether this is what you want.
Cheers,
Ihnwhi
Hi @Ihnwhi ,
Thank you for your reply!
about
(1) Yes, all latent variables have only one indicator, because we're using the total scores of the questionnaire measurements.
(2) I'm not sure if this is what I want, honestly. I want to control for Kontrolle, Age and Sex but don't want any of these variables to be used in either regressions or correlations. Do you have an advice how this is done correctly?
Thanks,
Julia
Hi @juliakatharinapfarr,
Thanks for your follow-up questions!
Anhedonia ~ Kontrolle + Age + Sex
Cheers,
Ihnwhi