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

Binomial with n != 1 #544

Open
ParadaCarleton opened this issue Jul 7, 2023 · 2 comments
Open

Binomial with n != 1 #544

ParadaCarleton opened this issue Jul 7, 2023 · 2 comments

Comments

@ParadaCarleton
Copy link

Not sure if this is missing or just not documented. But it'd be nice to have a way to be able to do Binomial regressions with n not equal to 1, e.g. students_passing ~ teacher_salary with students_passing ~ Binomial(class_size, p_from_regression)

@palday
Copy link
Member

palday commented Sep 14, 2023

The wts kwarg can be used to specify the the number of trials associated with a Binomial observation. Note that the response is always on the proportion/probability scale, so it would be prop_students_passing ~ ... with wts=n_students and NOT n_students_passing ~ ....

@ParadaCarleton
Copy link
Author

I see, thanks. In that case, maybe this should be documented, and the error message replaced to be clearer?

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