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

Discrete variables: poisson and aggregated binomials #45

Open
fusaroli opened this issue Jul 1, 2020 · 5 comments
Open

Discrete variables: poisson and aggregated binomials #45

fusaroli opened this issue Jul 1, 2020 · 5 comments

Comments

@fusaroli
Copy link

fusaroli commented Jul 1, 2020

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
Copy link
Author

fusaroli commented Jul 3, 2020

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
Copy link
Owner

donaldRwilliams commented Jul 24, 2020

@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
Copy link
Owner

donaldRwilliams commented Jul 24, 2020

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
Copy link

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
Copy link
Owner

donaldRwilliams commented Oct 20, 2020

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.

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