Type : CREATION_INTERNE
Data is directly defined within the script via a DATA Step using DATALINES ('school' dataset).
| 1 | DATA school; |
| 2 | LENGTH Program $ 9; |
| 3 | INPUT School Program $ Style $ Count @code_sas_json/8_SAS_Intro_ReadFile_MultiCol_@@.json; |
| 4 | DATALINES; |
| 5 | 1 regular self 10 1 regular team 17 1 regular class 26 |
| 6 | 1 afternoon self 5 1 afternoon team 12 1 afternoon class 50 |
| 7 | 2 regular self 21 2 regular team 17 2 regular class 26 |
| 8 | 2 afternoon self 16 2 afternoon team 12 2 afternoon class 36 |
| 9 | 3 regular self 15 3 regular team 15 3 regular class 16 |
| 10 | 3 afternoon self 12 3 afternoon team 12 3 afternoon class 20 |
| 11 | ; |
| 1 | PROC BGLIMM DATA=school seed=123 dic; |
| 2 | freq Count; |
| 3 | class School Program; |
| 4 | model Style(ref="class")=School Program School*Program / dist=multinomial |
| 5 | link=glogit; |
| 6 | RUN; |
| 1 | PROC BGLIMM DATA=school seed=123 dic; |
| 2 | freq Count; |
| 3 | class School Program; |
| 4 | model Style(ref="class")= School Program / dist=multinomial |
| 5 | link=glogit; |
| 6 | estimate 'School 1 vs 3' School 1 0 -1 / exp bycat; |
| 7 | estimate 'School 2 vs 3' School 0 1 -1 / exp bycat; |
| 8 | estimate 'Afternoon vs Regular' Program 1 -1 / exp bycat; |
| 9 | RUN; |