I am trying to generate a random number from a mixture normal distribution but got an error message that the matrices do not conform to the operation. Here is my code: proc iml; call randseed(12345); p = {0.2 0.5 0.3}; mu = {0 5 10}; sig = {1 1 2}; call randgen(x, 'NORMALMIX',p,mu,sig); print x; quit;
... View more