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

Multivariate GLMs #46

Open
ParadaCarleton opened this issue Mar 1, 2022 · 2 comments
Open

Multivariate GLMs #46

ParadaCarleton opened this issue Mar 1, 2022 · 2 comments

Comments

@ParadaCarleton
Copy link
Member

ParadaCarleton commented Mar 1, 2022

Multivariate GLMs are very common in econometrics and also very useful in general. I think this is low-hanging fruit in terms of relative effort vs payoff: Multivariate GLMs should be simple to implement, since they just require generalizing a handful of formulas to accept matrices, but they're extremely useful because they solve the problems typically misidentified as "Multiple comparisons."

Relevant

@storopoli
Copy link
Member

Does StatsModels.jl and MixedModels.jl formulas support multivariate stuff in the right hand side of ~?

@emfeltham
Copy link

emfeltham commented Mar 13, 2023

I think that this would be a great idea, but there may be some practical issues. I don't believe that MixedModels.jl supports multivariate (not multiple) linear models. Even MultivariateStats.jl doesn't seem to support it.

If I enter a formula with multiple responses variables, it appears to work, at least minimally:

julia> @formula(y + z ~ 1 + x)
FormulaTerm
Response:
  y(unknown)
  z(unknown)
Predictors:
  1
  x(unknown)

But, it looks like there have been some questions about easily implementing multivariate models in Turing more generally; e.g., https://discourse.julialang.org/t/singular-exception-with-lkjcholesky/85020 (there are other discussion too, some of which are linked therein). People seem to be having issues with using a prior commonly used for the covariance matrix in multivariate regression models.

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

3 participants