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

[Feature request] Multivariate Laplace as random effect distribution? #1723

Open
trinhdhk opened this issue Jan 13, 2025 · 3 comments
Open
Labels

Comments

@trinhdhk
Copy link

trinhdhk commented Jan 13, 2025

Albeit unofficial, brms supports Multivariate Student T as a random effect distributional family. Please, is it possible to add Multivariate Laplace to a future version, as the pdf is already well-defined in R [1]? My guess is that it might be a bit slow using this implementation as it involves the calculation of $\Sigma$ , but maybe there is a different formulation elsewhere.

Laplace is nice to have, especially when one wants to check if some groups diverge from the normative curve.

[1] https://search.r-project.org/CRAN/refmans/LaplacesDemon/html/dist.Multivariate.Laplace.html

Edit: A second look, it may not involve $\Sigma$ after all, since every $\Sigma$ is encapsulated inside a square root, so theoretically we can get a Cholesky decomposition, but I don't have the math capability to factorise it out.

@paul-buerkner
Copy link
Owner

It should be possible to add it. What are the advantages of using the MV laplace distribution (vs. normal or student-t) for random effects?

@trinhdhk
Copy link
Author

trinhdhk commented Jan 13, 2025

It should be possible to add it. What are the advantages of using the MV laplace distribution (vs. normal or student-t) for random effects?

While Student's T captures over-dispersion, Laplace can do stronger shrinkage. In the same manner as variable selection, Laplace can be more powerful than Normal in detecting which group-specific random effect diverge from the average. It might not be relevant when looking at marginal effects but is extremely useful when we want to detect which particular, say, region of the brain, the disease is targeting, in one model.

@paul-buerkner
Copy link
Owner

paul-buerkner commented Jan 13, 2025 via email

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

No branches or pull requests

2 participants