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

The .get_ functions do not appear to return anything #616

Open
rlustermans opened this issue Sep 8, 2024 · 1 comment
Open

The .get_ functions do not appear to return anything #616

rlustermans opened this issue Sep 8, 2024 · 1 comment

Comments

@rlustermans
Copy link

rlustermans commented Sep 8, 2024

While working with the model object, I noticed that none of the get_ functions are returning any values. For example, model.get_nobs() and model.get_fit(). Is anyone else experiencing this issue, or is it just me?

@s3alfisc
Copy link
Member

s3alfisc commented Sep 8, 2024

Hi @rlustermans, I admit that the .get_ methods are poorly named - they are only meant for internal use and in consequence, all of them only assign attributes but don't return anything. I should rename them at some point. See here for the get_nobs() method. You can obtain the number of observations by calling fit.nobs(), coefficients by calling fit.coef(), a tidy data frame by calling fit.tidy() etc.

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

2 participants