I have used column-bind (cbind) function in R to create a dependent variable of two different data columns, and would like to apply Bayesian GLM analysis to it with several other independent variables. Is this doable?
Thanks David Eugene Booth for the recommendation and sorry for my late reply. I'd like to add a random effect into the formula as it makes more sense with glmer without Bayesian. I've also tried using the brms function but it does not apply to multivariate regression. Is there any other package/function that can handle both mixed model and combined DV please?
Do you really need this to be multivariate eg are the two DVs really independent and then 2 separate regression would do. if that wouldn't work then Google search for a multivariate function that meets all of your criteria. David Booth
Ran Dai are you sure that multivariate models do not work with brms?? I think this formula should work in principal to get a multivariate model for the two DVs y1 and y2, with a radom intercept effect for "id":
Here, you can find some code example with two response variables in MCMCglmm: https://tomhouslay.files.wordpress.com/2017/02/indivvar_mv_tutorial_mcmcglmm.pdf