This will provide mean coefficients for each sample that you can use to construct individual-level coefficients.

sample_deltas(mu_vec, sigma, nsamples)

Arguments

mu_vec

vector of means of length K (one mean per condition)

sigma

positive real number for standard deviation of means across samples

nsamples

number of samples over which deltas should vary

Value

deltas is a M = nsamples by K condition matrix