Action Principale : bartScoreMargin
| 1 | DATA casuser.sim_data; |
| 2 | call streaminit(123); |
| 3 | DO i = 1 to 100; |
| 4 | x1 = rand('UNIFORM'); |
| 5 | x2 = rand('UNIFORM'); |
| 6 | IF rand('UNIFORM') < 0.5 THEN c1 = 'A'; |
| 7 | ELSE c1 = 'B'; |
| 8 | y = 10 * sin(3.14 * x1 * x2) + 20 * (x2 - 0.5)**2 + 10 * (c1='A') + rand('NORMAL'); |
| 9 | OUTPUT; |
| 10 | END; |
| 11 | RUN; |