Scénario de test & Cas d'usage
Création d'un dataset transactionnel avec segments, catégories et montants
| 1 | DATA casuser.retail_trans; LENGTH Segment $ 10 Category $ 15; INPUT Segment $ Category $ Amount; DATALINES; Gold HighTech 1200 |
| 2 | Gold Fashion 150 |
| 3 | Silver Home 300 |
| 4 | Bronze Fashion 45 |
| 5 | Gold HighTech 2500 |
| 6 | Silver HighTech 800 |
| 7 | Bronze Home 50 |
| 8 | Gold Fashion 600 |
| 9 | Silver Fashion 200 |
| 10 | Bronze HighTech 120 |
| 11 | ; RUN; |
| 1 | |
| 2 | PROC CAS; |
| 3 | TABLE.tableInfo / TABLE="retail_trans"; |
| 4 | |
| 5 | RUN; |
| 6 |
| 1 | |
| 2 | PROC CAS; |
| 3 | SIMPLE.crossTab / TABLE={name='retail_trans'} row='Segment' col='Category' association=true chiSq=true; |
| 4 | |
| 5 | RUN; |
| 6 |
Génération de trois tables : 'CrossTab' (fréquences), 'ChiSq' (indiquant la probabilité d'indépendance) et 'Measures' (V de Cramer). Le résultat doit confirmer ou infirmer statistiquement le lien entre le statut du client et ses préférences d'achat.