Type : CREATION_INTERNE
Die Daten werden direkt im Skript über einen Data Step unter Verwendung von Schleifen und der DATALINES-Anweisung generiert.
| 1 | title 'Example 5. Stratified Sampling'; |
| 2 | |
| 3 | DATA Screen; |
| 4 | DO Disease='Present','Absent'; |
| 5 | DO Test=1,0; |
| 6 | INPUT Count @code_sas_json/8_SAS_Intro_ReadFile_MultiCol_@@.json; |
| 7 | OUTPUT; |
| 8 | END; |
| 9 | END; |
| 10 | DATALINES; |
| 11 | 950 50 |
| 12 | 10 990 |
| 13 | ; |
| 1 | PROC LOGISTIC DATA=Screen; |
| 2 | freq Count; |
| 3 | model Disease(event='Present')=Test |
| 4 | / pevent=.5 .01 ctable pprob=.5; |
| 5 | RUN; |