-
Notifications
You must be signed in to change notification settings - Fork 2
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
Treatment-group-specific variances #102
Comments
Glancing at https://opensource.nibr.com/bamdd/src/02h_mmrm.html, I see Here is what I propose:
|
One interesting wrinkle from the vignette is: the In our package ... should the brms.mmrm archetype chosen by the user affect both the mean parametrization and the variance parametrization? I guess yes?
I don't think there is any subject-specific effect here. Suppose there are 4 treatment groups and 4 visits like in my colleagues' vignette. The formula above allows 16 different variances in these group-by-visit cells. This is more flexible than what is assumed in the current brms.mmrm model, which is 4 variances (one per visit) assumed to be shared across treatment group within visits. But it is not so flexible as to allow different residual variances at the patient level. |
I agree. I got this wrong at first (and deleted my comment). It's good to have the possibility to model group specific covariance structures. |
Yikes, I'm glad you pointed that out. This makes me think we should prohibit contrasts in all the important factors we are modeling.
I think it depends on what we are trying to do, and on the scope of the package. For archetypes, we micromanage fixed effects to make it easy and safe to set informative priors. Would we want to do the same for variances? Would we expect users to set carefully-constructed priors on variance components using historical data / expert elicitation? I think this is relatively uncommon, and it is free from the hidden pitfalls of covariate adjustment, so I think it would be feasible for advanced users to directly call I initially assumed that the variance parameterization would be independent of the fixed effect parameterization and handled in a consistent way across all archetype and non-archetype analyses. I think this is feasible because the archetype still retains all the original columns from the data, so you can still write a formula like |
This is needed because of the "effect size" calculation in |
The interface could be
brm_formula(..., variance = "heterogeneous_group")
. (Homogeneous group-specific variances would be an odd choice, and I see no reason for it.) Then inbrm_marginal_draws()
, the calculation of effect size would need to use group-specific variances.The text was updated successfully, but these errors were encountered: