factor_analyzer icon indicating copy to clipboard operation
factor_analyzer copied to clipboard

aic and bic output nan

Open LilianYou opened this issue 4 years ago • 3 comments

Hi,

I conducted a cfa analysis, but the aic_ and bic_ outputs are both "nan". I wonder if there could be any example in calling aic and bic? And what might be the reason that I receive "nan"?

LilianYou avatar Aug 14 '21 18:08 LilianYou

Hi @LilianYou please share the data if possible so we can try and replicate the issue.

desilinguist avatar Aug 14 '21 19:08 desilinguist

Here I uploaded sample data: https://docs.google.com/spreadsheets/d/1RCNK1t1L2sY4s0-iMudpPisFKnlRHuj729wPVejNfU0/edit?usp=sharing

below are the codes I used: `model_dict = {"F1": ["navigation_skills"], "F2": ["age"], "F3": [ "communte_level", "sleep"]}

model_spec = ModelSpecificationParser.parse_model_specification_from_dict(df2, model_dict)

cfa = ConfirmatoryFactorAnalyzer(model_spec, disp=False)

cfa.fit(df2.values) `

Thanks in advance.

LilianYou avatar Aug 15 '21 07:08 LilianYou

Hi @LilianYou, thanks for sharing the code and data.

I'm not able to reproduce this issue. Can you provide some additional details about your environment? (What version of Python are you using, and what package versions?)

image

jbiggsets avatar Sep 03 '22 19:09 jbiggsets