Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

SEM. Failing calculation

Hello JASP Team!

I have a question to evankesteren.

I performed a mediation analysis with 1 IV, 1 DV and 6 mediators. Everything looks good:

I copied lavaan syntaxes into SEM

Model syntax

# ---------------------------------

# Mediation model generated by JASP

# ---------------------------------

# dependent regression

RESIL ~ b11*SE + b12*LOT + b13*SC + b14*CS + b15*BU + b16*STS + c11*PSS

# mediator regression

SE ~ a11*PSS

LOT ~ a21*PSS

SC ~ a31*PSS

CS ~ a41*PSS

BU ~ a51*PSS

STS ~ a61*PSS

# mediator residual covariance

SE ~~ LOT

SE ~~ SC

LOT ~~ SC

SE ~~ CS

LOT ~~ CS

SC ~~ CS

SE ~~ BU

LOT ~~ BU

SC ~~ BU

CS ~~ BU

SE ~~ STS

LOT ~~ STS

SC ~~ STS

CS ~~ STS

BU ~~ STS

# effect decomposition

# y1 ~ x1

ind_x1_m1_y1 := a11*b11

ind_x1_m2_y1 := a21*b12

ind_x1_m3_y1 := a31*b13

ind_x1_m4_y1 := a41*b14

ind_x1_m5_y1 := a51*b15

ind_x1_m6_y1 := a61*b16

ind_x1_y1 := ind_x1_m1_y1 + ind_x1_m2_y1 + ind_x1_m3_y1 + ind_x1_m4_y1 + ind_x1_m5_y1 + ind_x1_m6_y1

tot_x1_y1 := ind_x1_y1 + c11

Then all calculations are went wrong: the model shows zero degrees of freedom

All additional fit measurements also strange (including no difference between H0 and H1 models

And Path diagram came with error:

I performed this analysis on both raw and mean centred data. The errors and outputs in SEM are the same.

I would greatly appreciate if you could have a look into this problem. My initial thoughts that the model could not converge... But, I am not sure how to deal with this.

I attached my dataset.

Thank you very much in advance!

Best wishes,

alla


Comments

  • edited October 2020

    Hi @AllaY (cc'd @evankesteren),


    Thank you for reporting this error! I see that you first performed Mediation Analysis. Then, you copied the lavaan syntax produced from JASP and feed it to the lavaan syntax for Structural Equation Modeling (if I understood your situation, correctly).


    1. Path Diagram Issue

    I indeed see that the Path Diagram does not work. When I tried to plot the path diagram using the same lavaan syntax but with the function semPaths() in the R semPlot package, it worked. I also check that only the last two lines, that is, "ind_x1_y1 := ind_x1_m1_y1 + ind_x1_m2_y1 + ind_x1_m3_y1 + ind_x1_m4_y1 + ind_x1_m5_y1 + ind_x1_m6_y1" and "tot_x1_y1 := ind_x1_y1 + c11" are problematic since the Path Diagram is plotted if you exclude both two lines.


    2. Model Fit Issue

    I think the model fits are not strange because the model is saturated. That is, the number of free parameters (15 covariances among mediators, 1 variance of the predictor, 13 regression coefficients, 7 residual variances, so in total, 36; I excluded 1 mean of the predictor variable and 7 intercepts of the mediators and the outcome variable since means are centered in the data) is equal to the number of samples statistics (8 means and 28 variances/covariances, so in total, 36), which result in the degrees of freedom 0. Please note that the JASP might say there are 35 free parameters, but this should be 36 since the variance of the predictor (PSS ~~ PSS) should be included in the model syntax.


    For the path diagram issue, we will figure out the cause of the problem!


    Cheers,

    Ihnwhi

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games