Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aic and bic output nan #88

Open
LilianYou opened this issue Aug 14, 2021 · 3 comments
Open

aic and bic output nan #88

LilianYou opened this issue Aug 14, 2021 · 3 comments

Comments

@LilianYou
Copy link

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"?

@desilinguist
Copy link
Member

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

@LilianYou
Copy link
Author

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.

@jbiggsets
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants