-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Would a model_avg function make sense? #82
Comments
Glad you like the package. I specifically appreciate that you recognized the documentation. We spent a lot of time on that! As to model averaging, I think it’s a good idea to have that convenience function. brms has posterior_average, which we’ll be putting in rstantools and rstanarm soon. So indeed, we’re thinking along the same lines. Thanks for the suggestion! |
Yes, this is indeed the advantage of loo stacking. Currently we do not have a separate summary function like your description. One reason is we allow each model to have different parameter space. |
@lukeholman the specific examples you show do not usually need model averaging this way. What you seem to want is better handled by suitable prior (like horseshoe) and sampling. See first AIC solution Model averaging using stacking or LOO weights is for cases, where it is not easy to have continuous version of the model space and we assume that all models are not well specified. Let's continue discussion with @lukeholman in Stan forum, and we'll get back here when it's more clear what is needed. |
Actually I think instead of my previous suggestion of |
In brms, |
What is the use case for this? Different models have different model spaces or nonlinear mappings to interpretable scale and thus averaging of posterior distributions rarely makes sense (I can come up with some strangely constrained cases, but I would not advertise them). |
I agree. It basically mirrors the functionality of other (frequentist) packages doing model averaging. Not sure it was a good idea implementing this in the first place... |
Hi all, Thanks very much for the help! I spent yesterday doing a bunch more reading, and I think that either horseshoe priors or the http://mc-stan.org/projpred/articles/quickstart.html Cheers |
Thanks @lukeholman. I just opened #83 to help address adding examples and automating the process in brms and rstanarm. |
Thanks for an interesting and well-documented package!
So, I am new to Bayesian approaches. In the frequentist world, I did many analyses like this, namely specifying a set of plausible models, ranking them by their AIC values, and averaging the models with the appropriate weightings to obtain model-averaged parameter estimates, predictions etc.
As I understand it,
loo
provides a way to estimate model weights, which are a lot like Akaike weights in terms of their interpretation (i.e. models with a weight near 1 are likely to be the 'best' model in the set) and intended use (i.e. the aim is then to average across models - NOT to simply pick a single top model). Hope that's right?Assuming I understand correctly, would it make sense to add a convenience function with a similar aim to
MuMIn::model.avg
? Ideally, the newloo:model_avg
function could be used like this (here I assume you again wrote it in a way that allows integration withbrms
,rstanarm
etc):Maybe the model averaging is so easy, or so case-specific, that it doesn't need a separate function? But if that's the case, some worked examples in the vignette would be really handy. As it stands, I am not really sure what to do with the LOO values calculated for my models!
Thanks
The text was updated successfully, but these errors were encountered: