I have a vector $Y$ of size less than 75. I want to generate vectors $X_1$ and $X_2$, of the same size, satisfying the following constraints.
- Sample mean and variance of $X_1$ and $X_2$ are equal to specified values.
- Sample corr($Y, X_1$), corr($Y, X_2$), corr($X_1, X_2$) are equal to specified values.
How can I do this? My question is related to Generate a random variable with a defined correlation to an existing variable(s) but I didn't see anything there that exactly matched my constraints.