I want to sample from mixed normal distribution, first one is $N(1,2)$, second one is $N(5,4)$. I used
rnorm(100, c(mean=c(1,5), sd=c(2,4))). Is this correct?
The problem I am trying to solve is sampling from the 2 distribution above, first one with 75%, second one with 25%. Am I on the right track?
Edit: I will rewrite the problem for clearance, with easier numbers. :)
I want to sample from $N(0,1)$ with 70% probability, and $N(100,10)$ with 30% probability. Of course, that's just for sake of discussion, the actually distribution I am working with is n(21, 3.3), n(26,4).