Action Principale : exploreCorrelation
| 1 | PROC CAS; |
| 2 | dataStep.runCode / |
| 3 | code="data casuser.correlation_data; |
| 4 | call streaminit(123); |
| 5 | do i=1 to 1000; |
| 6 | x = rand('normal'); |
| 7 | y = 2*x + rand('normal', 0, 0.5); |
| 8 | if x > 0 then c = 'Positive'; else c = 'Negative'; |
| 9 | if rand('uniform') > 0.9 then call missing(x); |
| 10 | output; |
| 11 | end; |
| 12 | run;"; |
| 13 | RUN; |