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

Implement user-defined weights #2

Open
ararslan opened this issue Aug 10, 2022 · 0 comments
Open

Implement user-defined weights #2

ararslan opened this issue Aug 10, 2022 · 0 comments

Comments

@ararslan
Copy link
Owner

Some stubs are currently in place but we deliberately throw an error when weights are actually specified. The Ferrari 2004 paper makes no mention of weights and I haven't yet bothered to work out the math myself. Off the top of my head, I think what's needed is to account for it in the linear predictor updates, score vector, and expected Fisher information.

Looking at the R documentation for betareg, it appears they only accept case weights. It would likely be easiest to follow suit and use FrequencyWeights from StatsBase (and just wrap any plain input vector with that type). That makes testing against output from R easier.

I almost surely won't block an initial package release on having this feature.

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

1 participant