Data Prep Sheet

Action Principale : caEffect

Preparation Code

Script awaiting validation
Copied!
1DATA mycas.treatment_data;
2 DO i = 1 to 100;
3 covar1 = rand('UNIFORM');
4 covar2 = rand('NORMAL', 0, 1);
5 IF (covar1 + 0.5*covar2 > 0.5) THEN treatment = 'Drug A';
6 ELSE treatment = 'Placebo';
7 outcome = 10 + 5*(treatment='Drug A') + 3*covar1 + 2*covar2 + rand('NORMAL', 0, 2);
8 OUTPUT;
9 END;
10RUN;
Actions using this script
  • causalanalysis caEffect En cours
  • No other action uses this exact script.