simulate

  1. S

    problem in doing the sas programming

    proc iml; S = 10; N = 100; P = 5000; call randseed(12345); Res = {0 , 0}; do rep = 1 to S; X = j(N, P, .); Y = j(N, 2, .); call randgen(x, ’normal’); call randgen(y, ’normal’); Cor = corr(Y || X)[{1 2}, 3:(P+2)]; Res = Res + abs(Cor)[ ,<>]; end; Res = Res / S; print Res; quit...
  2. P

    Radio Competition - HELP NEEDED!

    Hi, I'm a producer on a big (US) Radio station. I'm developing a new competition, but I need help with the probability... The game is simple (although some details are changed here for obvious reasons!) We have an amount of cash in a case... all you have to do is tell us how much is in there...