Skip to content

Getting an error when trying to fit factor loadings to original data #74

Description

@gaardhus

Describe the bug
I'm doing factor analysis on a matrix with the dimensions 17x153, so I have more columns than rows. Normally, I would expect a PCA to return the same number of components as variables, but in my instance it only returns 17. I get the correct factor loadings for the 17 components, however when I try to fit it to the original data - in order to see how my original observations are distributed on the components - I get an error, and values that do not correspond with my tests.

C:\Users\UserName\anaconda3\envs\DS_env\lib\site-packages\factor_analyzer\factor_analyzer.py:740: UserWarning: Unable to calculate the factor score weights; factor loadings used instead: Singular matrix
  'factor loadings used instead: {}'.format(error))

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox

Additional context
Python version: 3.7.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions