I think this has a simple answer but I can't quite figure it out. I'm trying to simulate a causal relationship (or lack thereof!) and corresponding confounders from a directed acyclic graph (DAG), so I can't simulate everything at the same time from a correlation matrix because if for instance C entirely confounds the relationship between A and B, then A and B are marginally correlated, but not correlated after adjusting for C.
So if I generate C first as a random vector, how do I generate for instance B where the correlation between C and B is exactly R? I know for instance that if I add two uncorrelated random normal(0,1) vectors together (C and let's just say U) I will get B with normal(0,1.44) where R=sqrt(0.5), but what if I want R=0.3, or 0.8? Is there a simple way to specify the variance of U such that R=0.3?