Action Principale : copulaViewStore
| 1 | |
| 2 | DATA mycas.simdata; |
| 3 | call streaminit(123); |
| 4 | DO i = 1 to 1000; |
| 5 | u1 = rand('UNIFORM'); |
| 6 | u2 = rand('UNIFORM'); |
| 7 | x1 = quantile('NORMAL', u1); |
| 8 | x2 = quantile('NORMAL', u2); |
| 9 | OUTPUT; |
| 10 | END; |
| 11 | |
| 12 | RUN; |
| 13 | |
| 14 | PROC CAS; |
| 15 | copula.copulaFit / TABLE={name='simdata'}, var={'x1', 'x2'}, define={copula='t', df=5, marginals={'NORMAL', 'NORMAL'}}, store={name='copulastore', replace=true}; |
| 16 | |
| 17 | RUN; |
| 18 |