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

[Enhancement] Specific flat priors for the always include variables #22

Open
AlexanderLyNL opened this issue Jul 11, 2018 · 1 comment

Comments

@AlexanderLyNL
Copy link

Hi Merlise,

Do you think it's sensible to have a flat priors on the always include variables as we discussed in Edinburgh? I think that this makes sense and I believe that this boils down to a simple numerical integral with a change of degrees of freedom. I'll look into the formulas a bit more, once I'm done with some other work.

Cheers,
Alexander

@merliseclyde
Copy link
Owner

It is an extension of the idea of the flat prior on the intercept that it always included.
In theory, the covariance of the g-prior would be defined as $X_M^T(I - P_{X.inc})X_M$ where $P_X.inc$ is the orthogonal projection on the column space of $X.inc$ (the always included variables) and $X_M$ are the variables that are under consideration for model $M$.

All the formulas for the log of the marginal likelihood would go through with changing df from $n-1$ to $n - p_inc$ and with an adjustment to define the "R2" to have the SS from the model with $X_inc$ (rather than the intercept) in the denominator, which would be easy to add.

The trickier part would be the bookkeeping with the post-processing functions that compute predictions and posterior distributions for coefficients as now only some will be shrunk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants