Data Prep Sheet

Action Principale : copulaSimulate

Preparation Code

Script awaiting validation
Copied!
1DATA mycorr;
2 _name_ = 'y1'; _type_='CORR'; y1=1; y2=0.6; OUTPUT;
3 _name_ = 'y2'; _type_='CORR'; y1=0.6; y2=1; OUTPUT;
4RUN;
5 
6DATA empdata;
7 DO i = 1 to 1000;
8 y1 = rannor(12345);
9 y2 = 0.5 * y1 + sqrt(1 - 0.5**2) * rannor(12345);
10 OUTPUT;
11 END;
12RUN;
13 
14PROC CASUTIL;
15 load DATA=mycorr casout='mycorr' replace;
16 load DATA=empdata casout='empdata' replace;
17QUIT;
Actions using this script
  • copula copulaSimulate En cours
  • No other action uses this exact script.