# Same correlation matrix in different parts of a BRMS model

I know that it is possible to have some control over the correlation parameters with brms. I’m wondering if it is possible to use the same correlation matrix in two parts of a model, but to have different vectors of scale parameters.

Something like:

``````part1 <- bf(y1 ~ x1 + (1 + X1 | group, corr.mat = "corr1"))

part2 <- bf(y2 ~ x1 + (1 + X1 | group, corr.mat = "corr1"))
``````

I know that brms has the `by=` and `cov=` options, which don’t give me quite what I want (at least, i don’t think)

Is the vector of scales meant to be passed as data, or is it meant to be estimated? If the vector of scales is meant to be passed as data, then you can just form the two (different) covariance matrices `M1` and `M2` and then use

``````bf(
y1 ~ 1 + (1|gr(group, cov = M1)),
y2 ~ 1 + (1|gr(group, cov = M2))
)
``````

If the vector of scales is supposed to be estimated, what information do you think the model is going to use to estimate the vector of scales? There will only be one sample of group-level effects from the multivariate normal random effect distribution, which isn’t enough to estimate a vector of scale parameters. You can’t usefully fit a multivariate normal distribution to a single sample, even if the correlation matrix is known.