Scénario de test & Cas d'usage
Simulating machine sensor data (temperature, vibration) and failure counts, introducing a few extreme values.
| 1 | |
| 2 | DATA casuser.machine_failures; |
| 3 | INPUT temp vibration failures; |
| 4 | DATALINES; |
| 5 | 100 5 0 120 7 1 110 5 0 150 9 5 105 6 0 130 8 2 115 5 1 140 8 3; |
| 6 | |
| 7 | RUN; |
| 8 |
| 1 | |
| 2 | PROC CAS; |
| 3 | countreg.countregFitModel / TABLE='machine_failures', model={depVars={{name='failures'}}, effects={{vars={'temp', 'vibration'}}}}, dist='POISSON', store={name='failure_store', replace=true}; |
| 4 | |
| 5 | RUN; |
| 6 |
| 1 | |
| 2 | PROC CAS; |
| 3 | countreg.countregViewStore / TABLE='machine_failures', instore='failure_store', viewOptions={modelDefinition=true, fitModelSummary=true}, outputTables={names={ModelInfo='archived_info', FitSummary='archived_stats', replace=true}}; |
| 4 | |
| 5 | RUN; |
| 6 |
Two new CAS tables ('archived_info' and 'archived_stats') must be created in the casuser library containing the respective model information. The action should succeed even with the minimal data set provided in the context.