You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dirichlet requires getting estimate of $\mu$ for each series at each timepoint, so would have to enforce that there cannot be any partially observed timepoints in data. Would also require a reference category be chosen for identifiability, and that some sort of ordering is maintained to ensure that relevant rows of the design matrix are properly attributed to the correct series. A potentially useful way would be to use cbind(y1, y2, y3, et.....) as in brms:
A key restriction would have to be that the same linear predictors must be used for each response / category (in contrast to what can be done in brms. Could then ensure that the design matrix is appropriately ordered so that the vector of linear predictors is supplied to the dirichlet distribution, as in brms:
This same construct of using cbind for the outcomes should also make it straightforward to implement multinomial, multivariate Gaussian and multivariate T observation models.
Will just have to work out how to ensure outcome-scale posterior predictions can be done efficiently, as these won't be able to be vectorized (or can they?; a multivariate normal can be calculated as y = mu + L_Sigma * y_std;, where L_Sigma is the Cholesky decomposition of Sigma and y_std is Standard Normal. A multivariate T just replaces y_std with draws from a Standard T with appropriate degrees of freedom).
nicholasjclark
changed the title
Allow support for Tweedie in Stan
Allow support for Tweedie and Dirichlet in Stan
Oct 10, 2024
nicholasjclark
changed the title
Allow support for Tweedie and Dirichlet in Stan
Allow support for Multivariate Normal / T, Tweedie and Dirichlet in Stan
Oct 31, 2024
nicholasjclark
changed the title
Allow support for Multivariate Normal / T, Tweedie and Dirichlet in Stan
Allow support for Multivariate Normal / T, Tweedie, Multinomial and Dirichlet in Stan
Nov 18, 2024
Tweedie shouldn't be too much work, just involves:
https://discourse.mc-stan.org/t/tweedie-likelihood-compound-poisson-gamma-in-stan/14636/9;
Dirichlet requires getting estimate of$\mu$ for each series at each timepoint, so would have to enforce that there cannot be any partially observed timepoints in
data
. Would also require a reference category be chosen for identifiability, and that some sort of ordering is maintained to ensure that relevant rows of the design matrix are properly attributed to the correct series. A potentially useful way would be to usecbind(y1, y2, y3, et.....)
as inbrms
:A key restriction would have to be that the same linear predictors must be used for each response / category (in contrast to what can be done in
brms
. Could then ensure that the design matrix is appropriately ordered so that the vector of linear predictors is supplied to thedirichlet
distribution, as inbrms
:This same construct of using
cbind
for the outcomes should also make it straightforward to implement multinomial, multivariate Gaussian and multivariate T observation models.Will just have to work out how to ensure outcome-scale posterior predictions can be done efficiently, as these won't be able to be vectorized (or can they?; a multivariate normal can be calculated as
y = mu + L_Sigma * y_std;
, whereL_Sigma
is the Cholesky decomposition ofSigma
andy_std
is Standard Normal. A multivariate T just replacesy_std
with draws from a Standard T with appropriate degrees of freedom).This could be an extremely useful model for many types of multivariate and compositional time series. A very useful model would then be a VAR for the means, which are on the logit scale.
https://discourse.mc-stan.org/t/understanding-the-parameters-of-a-hierarchical-dirichlet-regression/27342/2
When adding these, must ensure multithreading is also supported
The text was updated successfully, but these errors were encountered: