sample_betas.RdUsing the per-sample means, generate individually varrying coefficients for each condition.
sample_betas(deltas, group_index, Sigma)
| deltas | an M by K matrix of coefficients for each M samples and K conditions |
|---|---|
| group_index | a vector of group labels (1:M) for each individual from 1:N |
| Sigma | a K by K correlation matrix definining the covariance of individually varying coefficients |
an N by K matrix of coefficients