factor_analyzer
factor_analyzer copied to clipboard
aic and bic output nan
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"?
Hi @LilianYou please share the data if possible so we can try and replicate the issue.
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.
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?)
