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

Model the precision parameter with predictors? #9

Open
JockLawrie opened this issue Aug 24, 2023 · 4 comments
Open

Model the precision parameter with predictors? #9

JockLawrie opened this issue Aug 24, 2023 · 4 comments

Comments

@JockLawrie
Copy link

Hi there,
Is there an intention to enable the precision parameter to be modelled with predictors?
Cheers

@ararslan
Copy link
Owner

Hi @JockLawrie! It's not implemented currently but it's generally on my radar. There are some minor changes on main that haven't yet made it into a release that begin to lay some of the groundwork for that. Would you consider variable precision models to be a critical feature?

@JockLawrie
Copy link
Author

Thanks for the quick reply Alex, much appreciated.

Not a critical feature at this point. I'm working on a project where this feature may be required. If it turns out that way it sounds like implementing the feature in this package is a better option than starting a new package. I'll be in touch when I know more, which I anticipate will be some time in Sep or Oct.

@JockLawrie
Copy link
Author

Hi again, a year later than expected. Turns out that the project I'm on indeed requires modelling the precision parameter with covariates.

I've recently updated MultinomialRegression.jl to use a cyclic block-wise coordinate descent alogrithm, together with a basic line search. The algorithm's implementation is about 100 lines and takes as arguments the objective function, a gradient function and a hessian function. For beta regression we could use this algorithm with 2 blocks of parameters, 1 each for the mean and precision. Note that the 2 sets of predictors needn't be the same, though they can be. Thoughts?

@JockLawrie
Copy link
Author

JockLawrie commented Oct 30, 2024

And here's an implementation. Note that this repo can cover many model types, including those in GLM.jl and MultinomialRegression.jl. The tests include an example of the latter.

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