donaldRwilliams / BGGM

Bayesian Gaussian Graphical Models
https://donaldrwilliams.github.io/BGGM/
GNU General Public License v2.0
54 stars 14 forks source link

Discrete variables: poisson and aggregated binomials #45

Open fusaroli opened 4 years ago

fusaroli commented 4 years ago

Is there a principled reason for discrete variables, such as those generated by poisson and aggregated binomials, not to be included in BGGM? This might be a dumb question :-) But I've been implementing some GGM-like models in brms, where I can model these outcome and I wanted to better understand how to compare w BGGM

fusaroli commented 4 years ago

following up on this: I couldn't find much about figuring out how well the data are modelled (e.g. posterior predictive checks / residuals checks), which is crucial when trying to use more difficult variables (aka non-gaussian) in BGGM. Am I missing something?

donaldRwilliams commented 4 years ago

@fusaroli I somehow did not receive a notification for this comment. Apologies, as typically I respond quickly.

And you can certainly model discrete variables, or even Poisson, or some combination. I am not really sure how to directly compare to brms, as in BGGM you would be using the rank likelihood or a semi parametric copula. This would be type = "mixed". I do not think brms can do this.

Also, as for predictive checks, I plan to implement these very soon. I agree they are important.

donaldRwilliams commented 4 years ago

Strange that I also did not get a notification in email (just checked).

Can you provide some further details as to what you are trying to do ?

LindaBetz commented 3 years ago

I'm new to BGGM and have follow-up question to that: can I model a mixture of binary and continuous variables when using the setting type = "mixed"? And is it then correct to set mixed_type to 1 for the binary variables in my data set? Thank you in advance!

donaldRwilliams commented 3 years ago

Yes, you can certainly do that.

And, yes, that is correct. So if you have 10 variables, with the first 5 being binary, then you would have c(1,1,1,1,1,0,0,0,0,0). The zeros denote treat those variables as continuous.