Giter Site home page Giter Site logo

Comments (4)

desilinguist avatar desilinguist commented on June 1, 2024

It looks like the minimization that is done as part of factor model fitting does not converge for your specific dataset. Can you replicate the issue using R?

from factor_analyzer.

tonytbui avatar tonytbui commented on June 1, 2024

It looks like the minimization that is done as part of factor model fitting does not converge for your specific dataset. Can you replicate the issue using R?

Is there a setting that I can change in /Users/*/opt/anaconda3/lib/python3.7/site-packages/factor_analyzer/confirmatory_factor_analyzer.py to work around that minimization?

Also, by "using R," do you mean the Lavaan pakage?

from factor_analyzer.

desilinguist avatar desilinguist commented on June 1, 2024

No, there’s no such setting because the minimization is a core part of the model fitting.

Yes, R + lavaan is a reasonable counterpart.

from factor_analyzer.

tonytbui avatar tonytbui commented on June 1, 2024

No, there’s no such setting because the minimization is a core part of the model fitting.

Yes, R + lavaan is a reasonable counterpart.

I used lavaan and got somewhat more understandable errors:

Error in lav_samplestats_icov(COV = cov[[g]], ridge = ridge, x.idx = x.idx[[g]],  : 
  lavaan ERROR: sample covariance matrix is not positive-definite
In addition: Warning messages:
1: In lav_data_full(data = data, group = group, cluster = cluster,  :
  lavaan WARNING: some observed variances are (at least) a factor 1000 times larger than others; use varTable(fit) to investigate
2: In lav_data_full(data = data, group = group, cluster = cluster,  :
  lavaan WARNING: small number of observations (nobs < nvar)
  nobs = 33 nvar = 119

Update: I cut down to 2 indicators per factor and 4 factors in total. This avoided the (nobs < nvar) error but showed another error that might corroborate with python's factor_analyzer:

Warning messages:
1: In lav_data_full(data = data, group = group, cluster = cluster,  :
  lavaan WARNING: some observed variances are (at least) a factor 1000 times larger than others; use varTable(fit) to investigate
2: In lav_model_estimate(lavmodel = lavmodel, lavpartable = lavpartable,  :
  lavaan WARNING: the optimizer warns that a solution has NOT been found!

from factor_analyzer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.