debug CFA

67 views
Skip to first unread message

Holly Varjak

unread,
Aug 1, 2018, 4:21:40 PM8/1/18
to lav...@googlegroups.com

My error message is:
      
           Error in lav_samplestats_from_data(lavdata = lavdata,
                 missing = lavoptions$missing, :
                 lavaan ERROR: Gamma (NACOV) matrix is not positive-definite
           In addition: warning message:
           In lav_samplestats_from_data(lavdata = lavdata,
                 missing = lavoptions$missing, :
                 lavaan WARNING: number of observations (731) too small to  compute 
                Gamma

The data sets are ordinal, Factor1 ranges from 0 to 3 and Factor2 1 to 5

       
The model I used:
       twotest.model <- 'Factor1 =~ item1 + item2 + ...(continues)... + item20
                                   Factor2 =~ item1 + item2 + ...(continues)... + item28'

    fit <- cfa(twotest.model , data= combinedlist, missing = "listwise", estimator ="WLS")
summary(fit, fitmeasures=true)




Mailtrack Sender notified by
Mailtrack

Jeremy Miles

unread,
Aug 1, 2018, 4:58:34 PM8/1/18
to lav...@googlegroups.com
Your sample is too small for the number of variables in your model. (You have a lot of variables.)

--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.
--
--
My employer has nothing to do with this email. 
Reply all
Reply to author
Forward
0 new messages