[go: up one dir, main page]

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

Intercept-only GLMs #380

Open
lbittarello opened this issue Jun 13, 2021 · 2 comments
Open

Intercept-only GLMs #380

lbittarello opened this issue Jun 13, 2021 · 2 comments

Comments

@lbittarello
Copy link
Member

It'd be nice to be able to fit GLMs without covariates. It's usually trivial, except when offsets are involved...

@lbittarello
Copy link
Member Author

What should the interface look like? fit is pretty straightforward, but I'm not sure about predict.

@QuantAkt
Copy link
QuantAkt commented Jun 2, 2024

I found a way to phrase the obvious, which worked for me using the formula interface:
formula = "Y~ {np.ones_like(Y)}", fit_intercept=True

The more obvious approach "Y~1" throws errors with "fit_intercept=True" and with "fit_intercept=False"

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