Type : CREACION_INTERNA
Los datos de origen ('categorical') se crean directamente en el script utilizando la instrucción `datalines`, lo que significa que están integrados en el propio código SAS.
| 1 | title 'Create Design Matrix'; |
| 2 | DATA categorical; |
| 3 | INPUT City$ G$ x resp; |
| 4 | DATALINES; |
| 5 | Chicago F 69.0 112.5 Chicago F 56.5 84.0 |
| 6 | Chicago M 65.3 98.0 Chicago M 59.8 84.5 |
| 7 | NewYork M 62.8 102.5 NewYork M 63.5 102.5 |
| 8 | NewYork F 57.3 83.0 NewYork M 57.5 85.0 |
| 9 | ; |
| 10 |
| 1 | PROC TRANSREG DATA=categorical design; |
| 2 | model class(city g city*g / zero=last); |
| 3 | id x resp; |
| 4 | OUTPUT out=input_mcmc(drop=_: Int:); |
| 5 | RUN; |
| 6 |
| 1 | PROC PRINT DATA=input_mcmc; |
| 2 | RUN; |
| 3 |