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

Warn in low-dimensional cases #7

Closed
wwiecek opened this issue Jan 11, 2019 · 5 comments
Closed

Warn in low-dimensional cases #7

wwiecek opened this issue Jan 11, 2019 · 5 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@wwiecek
Copy link
Owner

wwiecek commented Jan 11, 2019

If N = 2 we should consider stopping people from meta-analysing
If N = 3 we should suggest a prior for scale (half-Cauchy)

That means we also need to implement half-Cauchy

@wwiecek
Copy link
Owner Author

wwiecek commented Jan 11, 2019

Prior for scale parameters in hierarchical models
Gelman (2006) suggested half-Cauchy with mode at 0 and scale set to a large value (in the 8-schools example, we used the value 25), or with the scale estimated from data in a hierarchical-hierarchical setting in which there are many variance parameters which can be given a common prior.
The Gelman (2006) recommendations may be too weak for many purposes. If the number of groups is small, the data don't provide much information on the group-level variance, and so it can make sense to use stronger prior information, in two ways. First: Cauchy might be too broad, maybe better to use something like a t_4 or even half-normal if you don't think there's a chance of any really big values. Second: maybe the scale parameter for this hyperprior should be set to something reasonable, not to something large. This would suggest something like half-normal(0,1) or half-t(4,0,1) as default choices.
Historically, a prior on the scale parameter with a long right tail has been considered "conservative" in that it allows for large values of the scale parameter which in turn correspond to minimal pooling. But from a modern point of view, minimal pooling is not a default, and a statistical method that underpools can be thought of as overreacting to noise and thus "anti-conservative."
If doing modal estimation, see section on Boundary Avoiding Priors above

@wwiecek wwiecek added this to the v0.2 release milestone Jun 7, 2019
@wwiecek wwiecek assigned wwiecek and unassigned wwiecek Jul 19, 2019
@wwiecek wwiecek added enhancement New feature or request good first issue Good for newcomers labels Jul 19, 2019
@be-green
Copy link
Contributor

RE: N = 2, I don't know if this is a good option, but Andrew Gelman discusses multilevel models with 2 groups here and argues that it's fine but you need an informative prior on the between-group sd. Maybe warning about using an informative prior if there are only two groups is appropriate?

I think it's also hard to determine what "informative" means in advance of seeing the data, since whether a prior is informative probably depends on the context. Anyway just thought I'd mention it.

@wwiecek
Copy link
Owner Author

wwiecek commented Aug 22, 2019 via email

@wwiecek
Copy link
Owner Author

wwiecek commented Oct 23, 2019

There is now a warning for small N, but the default prior is unchanged -- worth revisiting this and setting a different prior (see text above)

@wwiecek wwiecek removed this from the v0.2 release milestone Oct 23, 2019
@wwiecek
Copy link
Owner Author

wwiecek commented Nov 18, 2019

We now have automated warning on setting default priors for N=2, N=3, but we do not stop anyone.

@wwiecek wwiecek closed this as completed Nov 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants