Howdy, Stranger!

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

Supported by

Errror in Valid Object

Hallo..

anyone can help me? I've got notif in JASP programme, when i was running SEM.

This analysis terminated unexpectedly.


Error in validObject(.Object): invalid class 'Fit' object: invalid object for slot 'fx.group' in class 'Fit': got class 'NULL', should be or extend class 'numeric'


Stack trace

.semMITable(modelContainer[['results']][['object']][[1]], NULL, modindices, options, ready)


lavaan:::modificationIndices(fit)


lav_object_extended(object, add = FULL, all.free = TRUE)


lavaan(LIST, slotOptions = lavoptions, slotSampleStats = object@SampleStats, slotData = object@Data, slotCache = object@Cache, sloth1 = lavh1)


lav_model_fit(lavpartable = lavpartable, lavmodel = lavmodel, lavimplied = lavimplied, x = x, VCOV = VCOV, TEST = TEST)


new('Fit', npar = max(lavpartable$free), x = x.copy, partrace = PARTRACE, start = lavpartable$start, est = est, se = se, fx = fx, fx.group = fx.group, logl = logl, logl.group = logl.group, iterations = iterations, converged = converged, control = control, Sigma.hat = if (lavmodel@conditional.x) implied$res.cov else implied$cov, Mu.hat = if (lavmodel@conditional.x) implied$res.int else implied$mean, TH = if (lavmodel@conditional.x) implied$res.th else implied$th, test = test)


initialize(value, ...)


initialize(value, ...)


validObject(.Object)


stop(msg, ': ', errors, domain = NA)


To receive assistance with this problem, please report the message above at: https://jasp-stats.org/bug-reports

So... what should i do?

#im a newbie using JASP programme😊

Comments

  • I suspect there is an error in the lavaan code, or in the way it connects to your data. It is difficult to judge without more information about the code and the data!

    Cheers,

    E.J.

  • ...but you might want to ask advice from the lavaan people, because I suspect it is a lavaan issue and not a JASP issue

    EJ

  • Thank for your advice EJ..

    If you dont mind, i wanna explain to you my model. I have 3 IV (EI, EX, SE), 1 Moderation (SSZ) and 1 DV (UB). All of them are latent variable. I wanna analizing with SEM.

    I put the lavaan syntax:

    #MEASUREMENT

    FSR =~ UB_fsr17 + UB_fsr21 + UB_fsr23

    USA =~ UB_usa2 + UB_usa6 + UB_usa7 + UB_usa9 + UB_usa11 + UB_usa14 + UB_usa16 + UB_usa19

    UA =~ UB_ua3 + UB_ua4 + UB_ua5 + UB_ua8 + UB_ua10 + UB_ua12 + UB_ua13 + UB_ua15 + UB_ua18 + UB_ua20 + UB_ua22

    UB =~ FSR + USA + UA

     

    APP =~ EI_ap18 + EI_ap26 + EI_ap32 + EI_ap15 + EI_ap25 + EI_ap19 + EI_ap22

    OPT =~ EI_op4 + EI_op13 + EI_op23 + EI_op24 + EI_op30 + EI_op3 + EI_op2

    UTI =~ EI_ut7 + EI_ut8 + EI_ut12 + EI_ut16 + EI_ut17 + EI_ut20 + EI_ut31

    EI =~ APP + OPT + UTI

     

    AFF =~ EX_af1 + EX_af3 + EX_af4 + EX_af5 + EX_af6 + EX_af8 + EX_af11

    ASC =~ EX_as12 + EX_as14 + EX_as15 + EX_as16

    VEN =~ EX_v19 + EX_v21 + EX_v22 + EX_v23

    SIN =~ EX_si24r + EX_si25r + EX_si26r + EX_si29r

    EX =~ AFF + ASC + VEN + SIN

     

    INI =~ SE_in1r + SE_in2r + SE_in3r

    EFF =~ SE_ef4 + SE_ef5 + SE_ef6 + SE_ef7 + SE_ef8

    PER =~ SE_p9r + SE_p10r + SE_p11r + SE_p12r

    SE =~ INI + EFF + PER

     

    #MODERATOR

    FRI =~ SSZ_f1 + SSZ_f2 + SSZ_f3 + SSZ_f4

    REK =~ SSZ_so5 + SSZ_so6 + SSZ_so7

    DEK =~ SSZ_so8 + SSZ_so9 + SSZ_so10

    DOS =~ SSZ_so11 + SSZ_so12 + SSZ_so13

    STAFF =~ SSZ_so14 + SSZ_so15 + SSZ_so16

    SSZ =~ FRI + REK + DEK + DOS + STAFF

     

    #INTERACTION

    mod1 =~ EI*SSZ

    mod2 =~ EX*SSZ

    mod3 =~ SE*SSZ

     

    #REGRESSION

    UB ~ EI

    UB ~ mod1

    UB ~ EX

    UB ~ mod2

    UB ~ SE

    UB ~ mod3

    UB ~ SSZ 

    The lavaan syntax that i put, is that right?

    Anyway, thank you so much for your respond☺️

    Cheers....

  • Hi Rama,

    I think without your data I cannot find out if there is something wrong with your code. It looks fine on a first glance. In any case, this seems more like a GitHub issue https://github.com/jasp-stats/jasp-issues/issues/new/choose. It would help out a lot if you would make an issue on GitHub and be sure to attach a zipped .jasp file.

    Cheers, Julius

Sign In or Register to comment.