Data Prep Sheet

Action Principale : copulaSimulate

Preparation Code

Script awaiting validation
Copied!
1DATA corrmatx;
2 INPUT _type_ $ _name_ $ y1 y2;
3 DATALINES;
4 corr y1 1.0 0.5
5 corr y2 0.5 1.0
6 ;
7RUN;
8 
9DATA simulatedData;
10 DO i = 1 to 100;
11 u1 = rand('UNIFORM');
12 u2 = rand('UNIFORM');
13 y1 = quantile('NORMAL', u1);
14 y2 = quantile('NORMAL', u2);
15 OUTPUT;
16 END;
17 keep y1 y2;
18RUN;
19 
20PROC CASUTIL;
21 load DATA=corrmatx outcaslib="casuser" casout="corrmatx" replace;
22 load DATA=simulatedData outcaslib="casuser" casout="simulatedData" replace;
23QUIT;
Actions using this script
  • copula copulaSimulate En cours
  • No other action uses this exact script.