-
-
Notifications
You must be signed in to change notification settings - Fork 196
[FR] Support for shared mixture model #1778
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
Comments
In the formula, you should be able to do something like bf(..., theta2 = "theta1") I believe, which should do the trick, I hope. |
Thanks for the immediate response Also,
model <-
brm(
bf(y1 ~ 1,
theta1 ~ x+x2,
mu1 ~ x,
mu2 ~ 1) +
bf(y2 ~ 1,
# theta1 = 'theta1_y1',
mu1 ~ x,
mu2 ~ 1) +
bf(y3 ~ 1,
theta2 = 'theta1',
mu1 ~ x,
mu2 ~ 1) +
set_rescor(FALSE),
algorithm='fullrank',
tol_rel_obj = 1e-4,
iter=4000,
cores=2, chains=2,
family = mixture(bernoulli, bernoulli),
data = dataset
)
|
Cross outcome will only be possible with brms 3.0. |
Thanks a lot. That is clear. |
I try to make it this year but with so much other stuff going on I am not
sure.
Trinh Dong ***@***.***> schrieb am Do., 15. Mai 2025, 11:49:
… *trinhdhk* left a comment (paul-buerkner/brms#1778)
<#1778 (comment)>
Cross outcome will only be possible with brms 3.0.
Thanks a lot. That is clear.
Any timeline for that? I am in struggling between waiting for brms and
implement the model in raw Stan.
—
Reply to this email directly, view it on GitHub
<#1778 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADCW2ADWDHERYY3P6XXETJD26RPJ7AVCNFSM6AAAAAB5FS5ELWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQOBTGIZDINZSG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Uh oh!
There was an error while loading. Please reload this page.
Currently when specifying a multivariate mixture model, the model assumes 3 independent sets of mixtures
(theta_y1, theta_y2, theta_y3
). Is there any plan for supporting the shared mixture model, as in constrainingtheta_y1 = theta_y2 = theta_y3 = theta
.I find this type of model not very useful in many cases, as we can model them independently. Rather than
MV(mixture(bernoulli, bernoulli), mixture(bernoulli, bernoulli), mixture(bernoulli, bernoulli)
, I believe there are more needs formixture(MV(bernoulli, bernoulli, bernoulli), MV(bernoulli, bernoulli, bernoulli))
.The text was updated successfully, but these errors were encountered: